Why do you have a testAction?
When you configure validation.xml and validator-rules.xml (see Apache/Struts/Validator 
documentation) you don't need to write an Action Class.  
 
Also, why do you have failure/success forwards?  Upon a failure, the validation will 
automatically forward your page to the input you specified in your struts-config 
<siteForm.jsp >, with the errors redisplayed.
 
If you post some code, maybe we can help more...
 
Anna:)

________________________________

From: yacout dadoun [mailto:[EMAIL PROTECTED]
Sent: Wed 06/10/2004 11:54 AM
To: [EMAIL PROTECTED]
Subject: Trouble with struts validator



Hi,

I'm trying to use the struts validator, i have created a simple form with
few inputs, i'd like to oblige the user to enter values into inputs.
I therefore :
1-added the validator pluing to strus-config.xml
2-added the action mapping with the path set to test, the type set to the
path of the action form called TestAction, the name set to testForm, 
validate set to true and inut set the the jsp file called siteForm.jsp and
forwards success and failure
3-created the TestAction.java taht extends Action and returns success
4-created the TestForm bean that extends ValidatorAction
5-created the testform.jsp  added <html:errors/>whose fomr id is testForm
6-get teh applictaion.properties file from the struts blank project
7-in the validation.xml added the formset where the name is testForm and
properties are required

However no errors is displayed

Any idea PLS

Thanks

_________________________________________________________________
Take advantage of powerful junk e-mail filters built on patented Microsoft®
SmartScreen Technology.
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines
  Start enjoying all the benefits of MSN® Premium right now and get the
first two months FREE*.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to