This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes Regarding values not clearing in the Form Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Regarding values not clearing in the Form" Watch "Regarding values not clearing in the Form" New topic
Author

Regarding values not clearing in the Form

Rick Charles
Greenhorn

Joined: Jul 27, 2006
Posts: 25
Hi

i am navigating from page1 to page2 and in page2 am performing a DB operation and then when i navigate back to page1 i am finding that the values which were in page1 remained the same. i really dont know why this happens.Is there anything wrong with the struts-config.xml file.

Thanks in advance
Rick...
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
When you navigate back to page 1, you must re-read the values from the database, just as if you were diplaying it for the first time.


Merrill
Consultant, Sima Solutions
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Regarding values not clearing in the Form