aspose file tools*
The moose likes Servlets and the fly likes Can anyone help me with my JSP/servlet problem? 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 » Servlets
Bookmark "Can anyone help me with my JSP/servlet problem?" Watch "Can anyone help me with my JSP/servlet problem?" New topic
Author

Can anyone help me with my JSP/servlet problem?

MartinChantler
Greenhorn

Joined: Aug 25, 2001
Posts: 1
Hi, I have written a JSP page that returns an
<APPLET> tag allowing me to display any applet I wish (initially a Sign on applet) in the page
The JSP also registers a bean with a scope of session
My sign-on applet talks to a servlet (via http) which authenticates the sign-on attempt - this all works wonderfully!
I can talk to the bean from my servlet, so that it will display the next applet when the JSP page is refreshed
what I am stuck on is getting the page to refresh from my code
If you press the refresh button it works and displays the next applet
But how do I get the browser to reload the page from my bean (or servlet).
I bet the answer is really simple but I am stuck!!!
Thanks for any help you can give
Martin C.
UK
Phil Hanna
Ranch Hand

Joined: Apr 05, 2001
Posts: 118
In your applet, use:
getAppletContext().showDocument(nextURL)

------------------
Phil Hanna
Sun Certified Programmer for the Java 2 Platform
Author of :
JSP: The Complete Reference
Instant Java Servlets


Phil Hanna<BR>Sun Certified Programmer for the Java 2 Platform<BR>Author of :<BR><A HREF="http://www.amazon.com/exec/obidos/ASIN/0072127686/electricporkchop/107-3548162-1137317" TARGET=_blank rel="nofollow">JSP: The Complete Reference</A><BR><A HREF="http://www.amazon.com/exec/obidos/ASIN/0072124253/electricporkchop/107-3548162-1137317" TARGET=_blank rel="nofollow">Instant Java Servlets</A>
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

"MartinChantler"
your name doesn't agree with the javaranch guidelines.
please take a moment and re-register after reviewing the
guidelines at http://www.javaranch.com/name.jsp
thanks for your cooperation.
- satya

Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can anyone help me with my JSP/servlet problem?
 
Similar Threads
Applet Servlet Communication
Servlet and JSP Session
Data of previous form gets submitted on refersh
call a servlet/Filter during refresh ?
3 little problems!