This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General 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