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

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

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.

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

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?

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

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

Thanks jwenting for your help.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.