File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 Murach's Java Servlets and JSP this week in the Servlets 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: 120
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
 
wood burning stoves
 
subject: Div value is not regained after submit button clicked.... struts 1.x..?
 
Similar Threads
how to delete the row on click of a checkbox instantly ?
JSF 2.0 - replacing JS Alert Box with what?
Trigger onSubmit without standard button
Javascript strange behavior after AJAX call returns
dynamically adding textboxes