Req: Maintaining data between requests with out setting the bean to session. What am i doing: I am using a DisplayTags , pass an ArrayList which is set to form bean to displays the Object properties it works fine , However I need these properties to be accessed in next request so i set them to session
any Ideas how to maintain form data between requets, Here the object properties are not accessed as requests Parameters when using Display Tags, hence i need some way to carry them to next request but i dont want to use session as it i spoiling if user moves to different actions without saving
Joined: Feb 15, 2005
Originally posted by Raghunandan Mamidala: i dont want to use session as it i spoiling if user moves to different actions without saving
No matter what you do, if the user navigates to a different page without submitting or saving the current page, the values will be lost. There's no way around that.
However, if you don't want to use the session, you can pass the data through to the next page by creating a <html:hidden> tag for each field you wish to have passed on to the next page.
Thanks for the reply i am displaying a huge array list using the display tags it would be difficult to detail each of them using hidden tags, however i wanted the values in next action only so i created a variable in JSP and put that in session removed it in immediate action class once the page is submitted that meets my requirements. so the value is set in JSP and immediately removed in action classes i could not think of anything better but this works any other suggestions to implement in more simple way ?