This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 39535
    
  27
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 - updated with new look and Ping home screen widget
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: 39535
    
  27
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: 39535
    
  27
Then showDocument does what you want.
Anbarasu Selvaraj
Greenhorn

Joined: Mar 07, 2006
Posts: 21
Thank You Ulf Dittmer.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: caling JSP Inside Applet
 
Similar Threads
applet to jsp
applet in jsp
applet-jsp communication
Applet in JSP
Can't play Rules Roundup