aspose file tools*
The moose likes Servlets and the fly likes repost from data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "repost from data" Watch "repost from data" New topic
Author

repost from data

Paul Wetzel
Ranch Hand

Joined: Nov 02, 1999
Posts: 107
The app I am working on uses jsp and servlets. When we want to pass data along we store our servlet in the session and then make calls to retreive it from the jsp. Sometimes we get a "Repost from data" dialog from the browser and sometime we dont. Is there a way to always get the repost from data. Our problem is once the jsp gets the servlet from the session it is removed. So...when the user clicks on the browsers reload button we have problems because the data used to populate the jsp is history. any thoughts / help would be greatly appreciated
paul wetzel
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12781
    
    5
If you are really storing a servlet reference in a session for purposes of holding information from a user, you are really going down the wrong road. You should NEVER store user information in the instance variables of a servlet.
If you want to hold information from a user, use a separate object, ideally a Javabean since JSPs work well with that syntax.
Objects won't get removed from a session unless your program removes them or the session is invalidated.
Bill

------------------
author of:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: repost from data