This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes struts validator and tiles Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts validator and tiles" Watch "struts validator and tiles" New topic
Author

struts validator and tiles

rob harvey
Greenhorn

Joined: Apr 05, 2002
Posts: 25
Hi - can you use struts validator framework and tiles together - it would seem not - when validation fails the input page is shown instead of the tile - ie with the input page inside it.
am i best just writing the validation method in the form?
thanks
sweta naidu
Greenhorn

Joined: Nov 02, 2004
Posts: 25
You can use validator framework and tiles together. I am using tiles and validations together but i configured my tiles using tiles-def.xml file. Whenever validation fails input in the action should point to tiles definition name.
rob harvey
Greenhorn

Joined: Apr 05, 2002
Posts: 25
cheers sweta - i have my definitions in a conig file too. so are you saying that then i just need to specify the input in the action element as the definition name? is that all i need to do?
thanks for your help
rob harvey
Greenhorn

Joined: Apr 05, 2002
Posts: 25
cheers works now
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: struts validator and tiles
 
Similar Threads
struts 2 - client side basic validation
WSAD 5.1 and Struts 1.1
Understanding public void prepare() +tiles
Struts Validation Isssue
need help on struts features