This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Tiles & Validator  RSS feed

 
Alan A Smith
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My project using tiles to generate html page.
Here is the struts-tiles.xml

Here is the index.jsp

The default_body.jsp contains a form and validated by struts-validator.
If there is any error in the submited parameters, it will redirect to default_body.jsp, but I want it redirect to index.jsp. Is it possible?
Thx a lot
 
Eric Sexton
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmmm. Not sure that you can do this. Out of curiosity, why would you want to do this? Is this a widespread way that you want to do stuff with the validator in your app?
You could use the validation methods in your action servlet and specify a forward in your struts config for an error on this validation.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!