This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
In my struts project I am using a combination of the bean:write and other struts input tags.
If there is an error when a user inputs the data in all the fields and submits the form. The page is re-displayed with the error messages but the information that was being displayed by the bean:write tag dissapears.
Any help on how i can fix this, will be very appreciated.
A subsection of the code where I get the error 7 lines down
your 'review' object is lost because it was stored in the previous request. you need to display the 'customer name' by storing it IN the form-bean (in another form-property), place that in an html:hidden and retreive and simultaneously display that using the value from the form-bean (i forgot the exact bean:write syntax for retreiving form properties, but you can look that up. i think it's somewhere along the line bean:write name='MyForm.map' property='customerName').
-/a<br />certified slacker...yes, my last name is 'do' - <a href="http://www.luckycouple.com" target="_blank" rel="nofollow">luckycouple.com</a>