Calling a JSP from an Applet
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Sourabh_Das
Posted On:   Thursday, July 4, 2002 12:15 AM

Is there any way to call a JSP from an Applet on clicking a button in the applet when we want to invoke it through relative path only and not through hard-coded server name where that JSP resides?

Re: Calling a JSP from an Applet

Posted By:   steve_barfield  
Posted On:   Thursday, July 4, 2002 03:04 AM

Try this :





URL u = getCodeBase();

try {
getAppletContext().showDocument(new URL(u+"index.jsp"));
}
catch (MalformedURLException e)
{showStatus("URL not found");}
catch (Exception e) {
{showStatus("Exception");}

About | Sitemap | Contact