User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 426,126 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,716 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Java advertiser: Lunarpages Java Web Hosting
Views: 1410 | Replies: 3 | Solved
Reply
Join Date: Dec 2006
Location: Texas
Posts: 33
Reputation: rwagnes is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
rwagnes's Avatar
rwagnes rwagnes is offline Offline
Light Poster

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

  #1  
Dec 10th, 2006
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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,752
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 18
Solved Threads: 199
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

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

  #2  
Dec 10th, 2006
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.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote  
Join Date: Dec 2006
Location: Texas
Posts: 33
Reputation: rwagnes is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
rwagnes's Avatar
rwagnes rwagnes is offline Offline
Light Poster

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

  #3  
Dec 10th, 2006
Originally Posted by jwenting View Post
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?
Reply With Quote  
Join Date: Dec 2006
Location: Texas
Posts: 33
Reputation: rwagnes is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
rwagnes's Avatar
rwagnes rwagnes is offline Offline
Light Poster

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

  #4  
Dec 11th, 2006
Hey. I figured it out. I used the showDocument method of the AppletContext Interface.

Thanks jwenting for your help.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Java Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Java Forum

All times are GMT -4. The time now is 4:27 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC