aspose file tools*
The moose likes Other Application Frameworks and the fly likes Stripes: data validation and data collecting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Stripes: data validation and data collecting" Watch "Stripes: data validation and data collecting" New topic
Author

Stripes: data validation and data collecting

Vadim Vararu
Ranch Hand

Joined: Jan 03, 2009
Posts: 147
Hi! I've got such a trouble. If validation fails, than, a forward occurs back to the last resource(jsp). What if i have to collect some data to display even in case of validation failure? What would be the easiest variant? As i understand, if validation fails, there is no one event method callled.


If you think you've done too much, usually it means you've done too few.
Frederic Daoud
author
Ranch Hand

Joined: May 22, 2008
Posts: 71
You can just use a getter method in your action bean:



Hope that helps.

Cheers,


Frederic Daoud
Author, Stripes...and Java Web Development is Fun Again
Stripes book
Vadim Vararu
Ranch Hand

Joined: Jan 03, 2009
Posts: 147
but i can't call a method if validation failes, can i?
Frederic Daoud
author
Ranch Hand

Joined: May 22, 2008
Posts: 71
Well, you said this was data to display in the original JSP, so in that case, sure you can, with ${actionBean.info}.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Stripes: data validation and data collecting