• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tiles & Validator

 
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic