943,962 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Marked Solved
  • Views: 2585
  • Java RSS
Dec 11th, 2006
0

Can I run an ASP file from a Java Applet Button?

Expand Post »
Hi. I have a Java Applet with an assortment of buttons that is loaded onto an html web page. I would like any given button to run my ASP code which returns a web page containing results from a database query. But I can't figure out how to link the button to my ASP file. Any suggestions?

Thanks, Elise
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
rwagnes is offline Offline
36 posts
since Dec 2006
Dec 11th, 2006
0

Re: Can I run an ASP file from a Java Applet Button?

You can't run ASP inside a JVM.
You can make an HTTP request to the server from which you got the applet, calling the ASP, and do something with the result.
Assuming of course you're hosting your applet on a server that can execute ASP.
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004
Dec 11th, 2006
0

Re: Can I run an ASP file from a Java Applet Button?

Click to Expand / Collapse  Quote originally posted by jwenting ...
You can't run ASP inside a JVM.
You can make an HTTP request to the server from which you got the applet, calling the ASP, and do something with the result.
Assuming of course you're hosting your applet on a server that can execute ASP.
I am hosting my applet on a server that can execute ASP. How do I make an HTTP request to the server?
Reputation Points: 10
Solved Threads: 0
Light Poster
rwagnes is offline Offline
36 posts
since Dec 2006
Dec 11th, 2006
0

Re: Can I run an ASP file from a Java Applet Button?

Hey. I figured it out. I used the showDocument method of the AppletContext Interface.

Thanks jwenting for your help.
Reputation Points: 10
Solved Threads: 0
Light Poster
rwagnes is offline Offline
36 posts
since Dec 2006

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: how to read CSV file in java
Next Thread in Java Forum Timeline: HELP for threads





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC