Have any know how to maintain State between Struts Tabslayout?(can any one help me out in this?)
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Ramesh_K
Posted On:   Tuesday, May 24, 2005 06:26 AM


In my application i have a tabslayout,which contains two links (link1 & link2),The Link1 will call one jsp and Link2 will call another jsp.If i click link1 and do some data entry job in that jsp and suddenly i will click link2 and return to link 1 jsp ,i have retain the datas which i have entered. how to do it? can any one helpme in this


Re: Have any know how to maintain State between Struts Tabslayout?(can any one help me out in this?)

Posted By:   Anonymous  
Posted On:   Tuesday, May 24, 2005 08:39 PM

In tablayout, every time you click on a tab, you are sending a page/action request to the server. When you moved from tab1's page to tab2's page, your entries in tab1's page are not sent to the server: they simply disappear. Hence, when you click back on tab1, the server sends you back the default page since it does not know anything about your entries.



If you really need this function, don't use tab layout but use a Javascript-based tab instead.



Hope this helps.
About | Sitemap | Contact