aspose file tools*
The moose likes Struts and the fly likes Bean value not retaining Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Bean value not retaining" Watch "Bean value not retaining" New topic
Author

Bean value not retaining

vidya sagar
Ranch Hand

Joined: Mar 02, 2005
Posts: 580
Hi all

I had a jsp page,where i get inputs from user,Once user submits the button, the page should do some operations(write values in xml file) and come back to same page with values retain in the jsp page.

Writing to xml is working fine,then i am using form bean and not calling reset method in that class

one way is to have bean:write in the value property of the each field

but my friend is telling if we are not calling reset method the value will retain..

is there any other thing to consider to retain value without writing bean:write

Thanks in advance
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
I'm not sure I understand the question. If you simply want the values in form fields to be redisplayed, as long as you've used the html:xxxx tags for the form fields, they will be redisplayed with the values entered by the user without you having to do anything. The key factor here is that the form bean must retain its values.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Bean value not retaining