| 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}.
|
 |
 |
|
|
subject: Stripes: data validation and data collecting
|
|
|