Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
prabhu pandurangan
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic