aspose file tools*
The moose likes Struts and the fly likes Div value is not regained after submit button clicked.... struts 1.x..? 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 » Frameworks » Struts
Bookmark "Div value is not regained after submit button clicked.... struts 1.x..?" Watch "Div value is not regained after submit button clicked.... struts 1.x..?" New topic
Author

Div value is not regained after submit button clicked.... struts 1.x..?

prabhu pandurangan
Ranch Hand

Joined: May 23, 2008
Posts: 118
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Once the user presses a submit button, a call is made to the server and the server then determines what content will be displayed. Even if it is redisplaying the same JSP that was submitted, it will be the JSP in its original form without any modifications made by the previous AJAX call.

If you want to keep track of changes made by AJAX calls, I'd suggest having the AJAX actions put some information in the HTTPSession object to keep track of what was changed. Then, when the page is refreshed, access this information to rebuild the page to include the AJAX changes.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Div value is not regained after submit button clicked.... struts 1.x..?
 
Similar Threads
dynamically adding textboxes
Trigger onSubmit without standard button
how to delete the row on click of a checkbox instantly ?
JSF 2.0 - replacing JS Alert Box with what?
Javascript strange behavior after AJAX call returns