• 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

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...
 
Opportunity is missed by most people because it is dressed in overalls and looks like work - Edison. Tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic