• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Can anyone help me with my JSP/servlet problem?  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

"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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!