• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Stripes: data validation and data collecting

 
Vadim Vararu
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Frederic Daoud
author
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can just use a getter method in your action bean:



Hope that helps.

Cheers,
 
Vadim Vararu
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but i can't call a method if validation failes, can i?
 
Frederic Daoud
author
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, you said this was data to display in the original JSP, so in that case, sure you can, with ${actionBean.info}.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic