This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Validator with Struts 1.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Validator with Struts 1.0" Watch "Validator with Struts 1.0" New topic
Author

Validator with Struts 1.0

saurav sarkar
Ranch Hand

Joined: Jan 07, 2007
Posts: 180

hi All,

I have an application which was coded in Struts 1.0 and no validator framework was used then.Now its been asked to use validator in the application.I dont have much knowledge on how Validator was used with Struts 1.0.Forward upgradation is not possible to 1.1 is not possible.Please help as how validator is supposed to be used with 1.0


Be Objectively Oriented.Explore the power of OOPs.
My Blog, Eclipse EMF Query committer.
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
I am pretty sure that the Validator framework was added to Struts with the 1.1 release. If that is the case then you could try to integrate the framework yourself, but it seems easier to just implement validation in the validate method on the forms. You can create validation methods in a utility class. In some ways I find this much easier than the Validator framework. Do you need client-side validation?

- Brent
 
Don't get me started about those stupid light bulbs.
 
subject: Validator with Struts 1.0
 
Similar Threads
is Validator can be configured as Module config ?
validator frame work
validator and tiles framework used often?
Can any one tell me how to use validator plugin in struts ?
Not able to validate my JSP