Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

caling JSP Inside Applet

 
Anbarasu Selvaraj
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Applet is Loading from JSP. Once the process is over i want to reload the JSP. How?
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Anbarasu Selvaraj
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You Ulf Dittmer.

If the servlet sends the response message, I need to Pass the control to jsp (Without any actions).
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then showDocument does what you want.
 
Anbarasu Selvaraj
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You Ulf Dittmer.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic