aspose file tools*
The moose likes Struts and the fly likes Tiles & Validator Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Tiles & Validator" Watch "Tiles & Validator" New topic
Author

Tiles & Validator

Alan A Smith
Greenhorn

Joined: Apr 25, 2003
Posts: 21
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

Joined: Sep 12, 2003
Posts: 133
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tiles & Validator