File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes caling JSP Inside Applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "caling JSP Inside Applet" Watch "caling JSP Inside Applet" New topic
Author

caling JSP Inside Applet

Anbarasu Selvaraj
Greenhorn

Joined: Mar 07, 2006
Posts: 21
Applet is Loading from JSP. Once the process is over i want to reload the JSP. How?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41096
    
  44
What's the point of opening a JSP (whether it contains an applet or not) if you intend to load a different JSP (or reload the same JSP) right afterwards?

An applet can cause the browser to display a new page through the AppletContext showDocument method.


Ping & DNS - my free Android networking tools app
Anbarasu Selvaraj
Greenhorn

Joined: Mar 07, 2006
Posts: 21
Thank you Ulf Dittmer.

My process is like jsp ==> opening applet ==>Applet reading files in client machine and communicating Servlet ==> Sevlet doing process ==> Servlet sends the response to Applet ==>??

Now i want to know the response and based on the results i want to open jsp.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41096
    
  44
What do you want to happen in the "==>??" step? If you want to replace the current page with a different one, then the showDocument method can do that (you can even pass URL parameters to it). If you want to do something else, tell us what that is.
Anbarasu Selvaraj
Greenhorn

Joined: Mar 07, 2006
Posts: 21
Thank You Ulf Dittmer.

If the servlet sends the response message, I need to Pass the control to jsp (Without any actions).
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41096
    
  44
Then showDocument does what you want.
Anbarasu Selvaraj
Greenhorn

Joined: Mar 07, 2006
Posts: 21
Thank You Ulf Dittmer.
 
 
subject: caling JSP Inside Applet
 
Similar Threads
Applet in JSP
applet-jsp communication
applet to jsp
applet in jsp
Can't play Rules Roundup