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

Empty list after validation error

Carlos Ribeiro
Greenhorn

Joined: Mar 14, 2012
Posts: 2
Hi,
i'm having problems with struts 1.2.7..

In my form, i have a list.



i pupulate this list in a Action.



but, when a validation error occurs and a JSP will be rendered.. the list comes empty..

any suggestion??

Thanks
Shankar Tanikella
Ranch Hand

Joined: Jan 30, 2011
Posts: 329

Hi Carlos, Does it work fine for the first time i.e. before validation error? Or did i get the scenario wrong?


Have Fun with Java
little,little.. little by little makes a lot..
Carlos Ribeiro
Greenhorn

Joined: Mar 14, 2012
Posts: 2
yes..before the validation it work..

i think the way i prepopulate the list it's wrong...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Empty list after validation error