I think that I may be missing something here. When using struts, how do you load say a html form (using a jsp file) to the user initially without having the Action class actually being processed and then being forwarded to the view? I defintely want to use the Validator class but I only want it to validate when the user has actually submitted a form with request parameters to that given action.
Marty -----Original Message----- From: Jones, Marty B. Sent: Friday, August 01, 2003 6:09 AM To: Struts Users Mailing List Subject: RE: DynaValidatorForm question Will this still validate the request parameters when there are actually request parameters present? -----Original Message----- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 6:04 PM To: 'Struts Users Mailing List' Subject: RE: DynaValidatorForm question Set validate attribute in <action> to false will solve your problem. -----Original Message----- From: Jones, Marty B. [mailto:[EMAIL PROTECTED] Sent: July 31, 2003 3:37 PM To: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]