• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

bean:write tag - query

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

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




Thanks for all the help in advance
Cheer
Achal
 
Ranch Hand
Posts: 354
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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').
 
Achal Jalan
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a bunch Alan... that solved it...
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic