You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Yansheng Lin <ya...@isogis.com> on 2003/08/01 01:03:54 UTC

RE: DynaValidatorForm question

Set validate attribute in <action> to false will solve your problem.

-----Original Message-----
From: Jones, Marty B. [mailto:marty_jones@dailyaccess.com] 
Sent: July 31, 2003 3:37 PM
To: struts-user@jakarta.apache.org
Subject: DynaValidatorForm question


I have a class that extends Action (LoginAction) and references a
DynaValidatorForm for form validation. I have noticed that if I directly
reference a url say http://myserver/control/login that it instantiates the
LoginAction as it should.  My question is, what is the best way to not allow
the Action class to be fired if no request arguments are on the request so
that the login.jsp file will paint to allow the user to enter usename and
password information in.  I am pretty sure that I could use a normal
ActionForm and in the validation method check to see if the username and
password values are both null.  If they are then return a mapping to go back
to the login screen.  Is there a way to do this with the DynaValidatorForm?

Thanks in advance,

Marty Jones

________________________
Marty B. Jones
Senior Software Engineer
DailyAccess.Com


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org