I think the errors are saved in session not in form.
-Original Message-
From: MohanR [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 09, 2002 7:27 AM
To: struts-user
Cc: MohanR
Subject: RE: Question about adding ActionErrors
Hi,
We are validating against the database
I thought it was normally request scope?
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, December 09, 2002 17:44
To: [EMAIL PROTECTED]
Subject: RE: Question about adding ActionErrors
I think the errors are saved in session not in form.
-Original
Hi,
We are validating against the database in the LoginAction through a
business delegate. I think the validation in the form would be limited to
checking for null or spaces...
A related question.
In my action, I use saveErrors. How are the 'errors' saved inside the
form ?
Thanks,
Neither your forms or actions should ever make a db connection. That should
happen in the DAO layer. Let the validator check that the username and
password are filled in and the minimum number of characters then let it call
your login action. Your login action with call a business method
4 matches
Mail list logo