Bravo Mr Smart man... It is much easier for you to just ignore the
question, instead of attack people .. and everyone will be happy ..
-Original Message-
From: James Childers [mailto:[EMAIL PROTECTED]]
Sent: 13 February 2003 20:42
To: Struts Users Mailing List
Subject: RE: validate
Hello,
my date validation doesn't work on client (jsp) side.
I need validate date in MM/dd/yy format.
in validation.xml :
formset
form name=financeChartForm
field property=startDate
depends=required,date
arg0 key=prompt.startDate
//resources/article.jsp?l=StrutsInAction
[EMAIL PROTECTED] wrote:
Hello,
my date validation doesn't work on client (jsp) side.
I need validate date in MM/dd/yy format.
in validation.xml :
formset
form name=financeChartForm
field property=startDate
depends=required
Hello,
my date validation doesn't work on client (jsp) side.
I need validate date in MM/dd/yy format.
in validation.xml :
formset
form name=financeChartForm
field property=startDate
depends=required,date
arg0 key=prompt.startDate
All:
I am having problems retrieving request values after submitting a form that
goes through validate(). Below is an example. Please help!
In the example below I have an action that shows the form using MyEditAction
with no validation (request values work fine). After submitting the form
.
Nico.
All:
I am having problems retrieving request values after submitting a form
that
goes through validate(). Below is an example. Please help!
In the example below I have an action that shows the form using
MyEditAction
with no validation (request values work fine). After submitting
path=/myEditAction
type=com.foo.bar.actions.MyEditAction
name=myEditForm
input=/testform.jsp
validate=true
forward name=success path=/success.jsp/
/action
Am I completely off and stand corrected?
Vinh
-Original Message-
From: Nicolas De Loof [mailto
below that would be com.foo.bar.actions.MyEditAction. In which
case my test attribute should be availble in MyEditAction.
action
path=/myEditAction
type=com.foo.bar.actions.MyEditAction
name=myEditForm
input=/testform.jsp
validate=true
forward name=success path=/success.jsp/
/action
Am I
Thanks for clearing that up Nico. That makes complete sense. I did notice
that Request is available in the validate() method in which case I should be
able to set my request parameters within validate(). Do you know if this is
NOT a good way to forward request attributes if validation errors
validate() to put datas back into request scope is not a nice way to
ensure JSP is able to display. But I don't know your project constraints, so
it could be a solution. I just recommend not mixing session/request scopes
handling and validation
code, as validate() allow you to concentrate controls into one
Hello,
I have a question about the server side validation implemented by 'beta3'.
When it kicks in, it validates all the fields of the form even though some
fields I didn't ask for validation in my validation.xml. Like some fields I
didn't let them depend on required in validation.xml, but
One more thing I want to add is: I defined the fields to be dependent on
'mask' and 'maxlength' in validation.xml, but it turns out that the fields
is required from server side validation.
At 11:49 AM 1/29/2003 -0500, you wrote:
Hello,
I have a question about the server side validation
Can you override (or supplement?) a DynaValidatorForm with a form bean,
and use the validate() method along with the validations specified in the
validation.xml? I can display my validation.xml errors, but not any from
my validate() method. It appears to bypass it and go right to the
'success
Did you try setting the type attribute of the form-bean to
full.qualified.ProfileForm?
Sri
-Original Message-
From: Susan Bradeen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 29, 2003 2:44 PM
To: [EMAIL PROTECTED]
Subject: DynaValidatorForm with validate()
Can you
with validate()
Did you try setting the type attribute of the form-bean to
full.qualified.ProfileForm?
Sri
-Original Message-
From: Susan Bradeen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 29, 2003 2:44 PM
To: [EMAIL PROTECTED]
Subject: DynaValidatorForm with validate
=edu.asu.vpia.struts.ChooseProfileForm/
actionpath=/chooseProfile
type=edu.asu.vpia.struts.ChooseProfileAction
name=chooseProfileForm
scope=request
validate=true
input=choose.profile
forward name=success path
Does your form subclass ValidatorForm? Does javascript validation work?
David
From: Wendy Smoak [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: Validator won't validate single required field
Date: Fri, 24
To: 'Struts Users Mailing List'
Subject: Validator validates on first form display (was RE: Validator
won' t validate single required field)
I wrote:
I know I'm missing something, because the struts-validator example
provided
with 1.1b3 works fine.
I think I found what's wrong... ChooseProfileForm
Does your form subclass ValidatorForm? Does javascript validation work?
That was the problem, thanks. Only now [see other message] I'm getting the
error the very first time the form is displayed. It needs to not show the
error until the user has had a chance to submit the form.
--
Wendy
You are probably linking directly to your ActionClass mapping. You can
avoid this by going to your JSP first instead of your Action mapping.
Don't
know if that made sense or not.
Yes, but I can't do that because the JSP's are under WEB-INF for the express
purpose of preventing people from
validate single required field)
You are probably linking directly to your ActionClass mapping. You can
avoid this by going to your JSP first instead of your Action mapping.
Don't
know if that made sense or not.
Yes, but I can't do that because the JSP's are under WEB-INF for the express
You probably forgot to say validate=false in your action mapping for
whatever action is initially displaying the page.
David
From: Wendy Smoak [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: Validator
You probably forgot to say validate=false in your action mapping for
whatever action is initially displaying the page.
Only one action displays the page: ChooseProfileAction, mapped as:
actionpath=/chooseProfile
type=edu.asu.vpia.struts.ChooseProfileAction
PROTECTED]
Subject: RE: Validator won't validate single required field
Date: Fri, 24 Jan 2003 12:57:39 -0700
You probably forgot to say validate=false in your action mapping for
whatever action is initially displaying the page.
Only one action displays the page: ChooseProfileAction, mapped
You wouldn't want to hit the JSP first anyways ;-).
It was suggested by another person here and I just wanted to rule it out in
case it was your next suggestion. :)
I believe both of your
thoughts will work but I would try the separate action mapping idea first.
I did, and it works,
PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: Validator validates too early (was RE: Validator won't validate
single required field)
Date: Fri, 24 Jan 2003 15:06:09 -0700
You wouldn't want to hit the JSP first anyways ;-).
It was suggested by another person here and I just
On 1/24/2003 11:49 PM, Wendy Smoak wrote:
/*only validate if the form has actually been submitted.
We can tell this by checking to see if the Submit
button is in the request
*/
if (request.getParameter(Submit) != null) {
return super.validate( mapping
Interesting... would equalsIgnoreCase be more appropriate, or are you sure
it'll always be in upper case? My jsp currently has:
html-el:form action=/chooseProfile
which turns into:
form name=chooseProfileForm method=post
action=/bendev/chooseProfile.do
so I'm guessing that 'post' will be
because request.getMethod() returns HTTP method and
request.getMethod().toString() is always uppercase
sorry, my mistake, request.getMethod().toString() is a nonsense because
request.getMethod() is type of java.lang.String.I'm too sleepy ;-(((
plastic
--
To unsubscribe, e-mail:
Hi!
I have a problem finding a new way to find my resources file from the form
bean.
The code I have been used so far in my validate method is the following:
public ActionErrors validate(ActionMapping mapping, HttpServletRequest
request) {
ActionErrors errors = new ActionErrors
In the validate method of my actionForm I am using the Jakarta regular expression api
to validate user input.
In the method I use a try catch block when creating a RE (regular expression pattern)
object. In the event an exception is thrown the catch block will catch the exception--
but how
In the validate method of my actionForm I am using the Jakarta regular
expression api to validate user input.
In the method I use a try catch block when creating a RE (regular expression
pattern) object. In the event an exception is thrown the catch block will
catch the exception-- but how
In the validate method of my actionForm I am using the Jakarta regular
expression api to validate user input.
In the method I use a try catch block when creating a RE (regular
expression
pattern) object. In the event an exception is thrown the catch block
will
catch the exception
Hello,
I have run into problems while using validate funkcion. If the function
validates false I add actionError to the list. But the struts doesn't
display the same page.
Instead it tries to display page with name /action.do, where action is
action parametr form html.form tag. With this action
I assume that you are referring to the ActionForm class' validate() method. If so,
you *must* further have specified an 'input' attribute for the action mapping in
question. The framework will forward the request to the path that is the value of the
'input' attribute. So, if you have
action
I am not using DynaForms currently. If I stay with my Form beans extending
ValidatorForm, is there any way to call the validate() method and use the
validator.xml at the same time.
For example, I have the following Form bean.
public class LoginForm
extends ValidatorForm
implements
In your example below, you need to call super.validate(...) in the
overridden validate method so that the validate method in ValidatorForm is
called. The validate method in ValidatorForm is the one that does the form
validation based on validation.xml and validator-rules.xml.
Here is an example
Hi,
I am using DynaValidatorForm, and i want to validate
number of check boxes selected by the user,
for example to display details, user must select
atleast one checkbox on the the main page before
clicking display details button,
or user must select only one check box for specific
operation
Hi
I have a very frustrating problem. I have a form
where I use a bean to prefill a form with a record,
the data for which is obtained from a Javabean in the
request object. Once a user is completed, I use the
validate functionality in the ActionForm to see if the
required fields were entered
-Original Message-
From: Samir Shah [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 06, 2003 9:23 AM
To: [EMAIL PROTECTED]
Subject: Repopulating a form after an error in Validate
Hi
I have a very frustrating problem. I have a form
where I use a bean to prefill a form
name=employeeFormBean
scope=request
validate=true
parameter=dispatch
input=/WEB-INF/jsp/employee/employeeViewNonHomeStore.jsp
forward
name=continue
path=/employee/displayEmployees.jsp/
/action
Ok, here are the relevant pieces of information
!-- Step 1 Action, this takes you to form to edit
--
actionpath=/gotoStep1
type=com.fdl.quoteweb.GotoStep1Action
scope=request
validate=true
input=/quoteweb/welcome.jsp
SSvalidate=true
SSinput=/quoteweb/welcome.jsp
SSforward name=success
SS path=/quoteweb/step1.jsp/
SSforward name=failure
SS path=/quoteweb/welcome.jsp/
SS /action
That's the problem (I believe) above. I don't see you tying
Hi all,
I've been trying to get data validation working. Many thanks for earlier
responses.
I did get a sample login app up and running. However, the oddest thing
happens. The first field, username, validates correctly. However, the
second one, password, doesn't validate at all. I'm including
Hi,
I'm using Struts 1.1b and one part of my webapp is a registration page
for new users.
I have to say that this thing works already somehow, but not really as
I'd like to have it.
Currently I'm not using the validate() method in my form bean and I'm
doing all form validation in the action
or the sample chapter about validation
available at http://www.manning.com/husted/chap12.pdf.
-Rana.
-Original Message-
From: mech
To: [EMAIL PROTECTED]
Sent: 12/29/2002 11:33 AM
Subject: Difficulties with form bean validate() for pre-populated form beans
Hi,
I'm using Struts 1.1b and one
Hi,
I am using Struts-1.1b2 client side validator. And I
have a big form for multipage user input. One of the
field need to validated in page 1 and 2. But I don't
see how can I do that, or does anyone know how to do
it? Here is my config:
validator.xml:
field property=firstnm
]
Sent: Wednesday, December 18, 2002 12:01 PM
Subject: validate one field in multipage
Hi,
I am using Struts-1.1b2 client side validator. And I
have a big form for multipage user input. One of the
field need to validated in page 1 and 2. But I don't
see how can I do that, or does anyone know
Hi:
This might not be the right place to post the message.
But if someone can help me here, I appreciate it.
I have a text field that can be ANY characters. Which
method should I call to validate it? I don't think I
should call isLetterOrDigit(char ch), because letter
means a-zA-Z. but character
Jenny,
If your input can contain ANY characters then what do you need to validate
for? Why don't you just check for an empty string? Am I missing something
here?
-Richard
-Original Message-
From: jenny zhang [SMTP:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 1:47 PM
: Jenny,
If your input can contain ANY characters then what
do you need to validate
for? Why don't you just check for an empty string?
Am I missing something
here?
-Richard
-Original Message-
From: jenny zhang [SMTP:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002
if text field accepts any character (which includes, newline/cr, blank, tab,
etc)
all you need to validate is if object returned is null
example:
in u request object, you stored a parameter x with value y,
you can check... if (x == null) error, else move on...
since your text field can take
I'd at least check for ((x != null) (!.equals(x.trim( for
required (String) fields.
... better yet, use the StrutsValidator. That'll make it a lot easier
on ya.
Khalid K. wrote:
if text field accepts any character (which includes, newline/cr, blank, tab,
etc)
all you need to validate
)
Regards,
Richard
-Original Message-
From: jenny zhang [SMTP:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 2:05 PM
To: Struts Users Mailing List
Subject: RE: validate
Richard:
Thank you for your reply.
I might misunderstand character. letter is
a-zA-Z, right
Richard, Eddie, Khalid. Thank you very much for giving me so clear
explanation.
Jenny
- Original Message -
From: Yee, Richard K,,DMDCWEST [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Monday, December 16, 2002 5:30 PM
Subject: RE: validate
Jenny,
Yes
Has anyone ever asked for the ability to control the input attribute,
i.e. for validation in a multipage form?
Edgar
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional
My code is aslmost working
Validation and messages are ok. Now I need to solve one more
problem
When these validate function returns some errors, and forward back to
form,jsp, the fields are empty. Follow I put the code, the page and the
struts-config. Whats wrong
:
with:
html:form action=UserForm
Regards
Patrice
- Original Message -
From: Jim Bruno Goldberg [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, November 27, 2002 5:36 PM
Subject: validate() almost working.
My code is aslmost working
validate
Hi, All:
I have a problem related to user input validation. I searched on the web, it
seems that I couldn't get a clue. Hopefully, you can help me out.
I have two screens: screen1 and screen2. The two screens are used for new
user registration.
On screen1, there are three fields
Hi, All:
I have a problem related to user input validation. I searched on the web, it seems
that I couldn't get a clue. Hopefully, you can help me out.
I have two screens: screen1 and screen2. The two screens are used for new user
registration.
On screen1, there are three fields: userName,
I'm using the Struts nightly build from nov. 13.
Initially I populate an ArrayList in a Validator form in an Action with
authentication types for a login screen.
In the jsp page, the authentication types are displayed with an
optionsCollection tag:
html:select property=authType
Greetings,
I am having a problem where a blank screen is presented instead of redirecting the
user back to the input attribute if the validate() method returns errors. If
validate() finds no errors or if i set validate=false for the action, processing is
ok with successful redirection
Hi!
I found a difference when running a page within a tiles definition and not.
The problem is the validatation. When running with tiles it validates when
no parameters are sent, it acts as if the form was submited when one views
the page for the first time and presents the validation-errors since
with the language fr, it's work.
I have also the problem with my IE6 with locale : language=en.
Rgs
Fabrice
-Message d'origine-
De : Robert Leland [mailto:rleland;apache.org]
Envoyé : jeudi 7 novembre 2002 18:04
À : Struts Users Mailing List
Objet : Re: Validate and nightly build problem
,
Michael
-Original Message-
From: Fabrice BLANQUART [mailto:fblanquart;covefi.com]
Sent: Freitag, 8. November 2002 12:23
To: [EMAIL PROTECTED]
Subject: RE: Validate and nightly build problem
Hi,
I join to this mail the jsp file that cause the problem and the
validator.xml.
Continuing
Michael Delamere wrote:
Hi,
I posted a problem yesterday concerning validating forms in several
sub-apps, whereby it only seemed to work for one and not all... this was
using struts1.1b2.
As suggested, I downloaded the nightly build that you tried today and
now validation doesn´t seem to work
List
Subject: Re: Validate and nightly build problem
Michael Delamere wrote:
Hi,
I posted a problem yesterday concerning validating forms in several
sub-apps, whereby it only seemed to work for one and not all... this
was
using struts1.1b2.
As suggested, I downloaded the nightly build
Michael Delamere wrote:
Yes, I copied all of the files into my WEB-INF/lib folder
If there is any more information you need, I will be glad to provide
it
Yes, Does the struts-validator example work ?
-Rob
--
To unsubscribe, e-mail:
Message-
From: Robert Leland [mailto:rleland;apache.org]
Sent: Freitag, 8. November 2002 16:45
To: Struts Users Mailing List
Subject: Re: Validate and nightly build problem
Michael Delamere wrote:
Yes, I copied all of the files into my WEB-INF/lib folder
If there is any more information you
Michael Delamere wrote:
I tried the registration and to me it seemed not to work
Unless of course it is normal behaviour that when leaving the fields
blank that it takes me to the start screen
Yes, that is the behavior.
If the field MUST be filled in then in your validator.xml
you
() in session
- forward to /jsp/user/modify/jsp.
After the user modifies some data and submits the form, the validate()
is called. As expected, struts shows the form if some errors occured;
but the form is not filled in with the latest modifications from the
user. Struts shows the form with the values
Hi,
I have a strange behaviour with the validator using the nightly build (20021107).
I use the html:javascript tag in order to make client validation. It work well with
the 1.1B2 but when
I use the nightly build it doesn't generate the validateXXX javascript function.
Debugging with source of
Fabrice BLANQUART wrote:
Hi,
I have a strange behaviour with the validator using the nightly build (20021107).
I use the html:javascript tag in order to make client validation. It work well with the 1.1B2 but when
I use the nightly build it doesn't generate the validateXXX javascript function.
Because I need to allow the user to come and go from the form before the
final submit, I need to hold off on validation until that point. So I've
got validate=false (that was a gotcha!) in the action tag and I'm now in
my LookupDispatchAction doing the validation manually:
How does this look
Check out Action.saveErrors for saving the errors returned from your call to
validate:
saveErrors(request, null); // clear current errors if you want
ActionErrors er = form.validate(mapping, request);
if ((er != null) (!er.isEmpty())) {
saveErrors(request, er);
forward = new ActionForward
returned from your call to
validate:
saveErrors(request, null); // clear current errors if you want
ActionErrors er = form.validate(mapping, request);
if ((er != null) (!er.isEmpty())) {
saveErrors(request, er);
forward = new ActionForward(mapping.getInput());
}
Quoting Wendy Smoak
Kris wrote:
Check out Action.saveErrors for saving the errors returned from your call
to
validate:
saveErrors(request, null); // clear current errors if you want
ActionErrors er = form.validate(mapping, request);
if ((er != null) (!er.isEmpty())) {
saveErrors(request, er);
forward = new
I'm sorry, Jeff, I thought you were talking about from within the Action.
The action is where you should be dealing with properties. The
ActionForm is just ... Well you could think about it like a piece of
copper. Electricity is commonly transferred from one place to another
over copper
I am using 1.1b2
I have searched for this question but have found many similar questions but
no satisfactory answer.
It appears that using :
MessageResources msg = this.getServlet().getResources()
inside the action for will work, but it is deprecated.
What is the cleanest way to do this?
I am
Have you tried the javadocs yet?
--
Eddie Bush
--
To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
from within ActionForm's validate()??
Have you tried the javadocs yet?
--
Eddie Bush
--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org
--
To unsubscribe, e-mail: mailto:struts
-
From: [EMAIL PROTECTED] [mailto:Jeff_Mychasiw;nlgroup.ca]
Sent: Thursday, October 17, 2002 4:12 PM
To: [EMAIL PROTECTED]
Subject: ApplicationResources from within ActionForm's validate()??
I am using 1.1b2
I have searched for this question but have found many similar
questions
We have a formbean (CreateUser) which we want to do basic validation on the
fields (not null/empty) so validation is set to true within the CreateUser
action config. However when this action is first called to set up the form
we don't want the validation to occur because there is nothing in the
Thanks for the reply.
I agree with your analogy, but I would like to do some date validation in
the forms validate method like this:
if(!ValUtils.isDate(this.papDate,dd-MMM-yy)){
errors.add(papDate, new ActionError(validation.field.shortDate,
PAP Date));
}
we use the key
Hi folks,
If I put validate=true in the action tag, the form will be validated once it is load.
Is it a right behavior? Since there is no data in the form bean, some madatory fields
that I specify in the validate method will be treated as error. How should I handle
it?
Billy Ng
Hi,
A Dijous 10 Octubre 2002 19:43, Billy Ng va escriure:
Hi folks,
If I put validate=true in the action tag, the form will be validated once
it is load. Is it a right behavior? Since there is no data in the form
bean, some madatory fields that I specify in the validate method
. The problem
I have is that the validation is being performed regardless of the button
being clicked. So I thought, just override the validate method, check the
button value, and if it is Submit, go ahead and let Validator do its thing,
otherwise don't. The question I can't seem to answer is, how do I
OK, figured it out (if anyone is interested).
After digging around in the DynaValidatorActionForm source a little, I tried
the following:
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request)
{
ServletContext context = getServlet
I'd like to use an actionFormBean with a few JSP form page.
But I'll have to treat different cases in the validate of my
actionFormBean...
So in validate(), I was thinking about looking at the name of the input
JSP with ActionMapping.getInput()
( or perhaps the name of the current action
]
Subject: Distinct case in validate() with a form used in several page
Date: Thu, 26 Sep 2002 16:35:06 +0200
I'd like to use an actionFormBean with a few JSP form page.
But I'll have to treat different cases in the validate of my
actionFormBean...
So in validate(), I was thinking about looking
which routines get called.
robert
-Original Message-
From: Vincent Berruchon [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 10:35 AM
To: Struts Users Mailing List
Subject: Distinct case in validate() with a form used in several page
I'd like to use
a validate method. It
contains two string fields name and number.
In the Struts config file I have added the plug-in:
plug-in className=org.apache.struts.validator.ValidatorPlugIn
set-property property=pathname
value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml/
/plug-in
In my
: Tuesday, September 24, 2002 2:47 PM
Subject: Can't get Validator to validate required ... what am I missing?
I recently downloaded the latest Struts 1.1b2 and I am trying to get the
validator working. I did drop the struts validator war into Weblogic and
it
validates fine.
In my test, I did
I have a bunch of checkboxes (filters) on a search screen. I want to
make sure the user selects at least one of these boxes before continuing
- is this possible to configure/do with the Validator Plug-In? I'm
using Struts 1.1B2.
Thanks,
Matt
--
To unsubscribe, e-mail: mailto:[EMAIL
I'm not familiar with Validator, but you could certainly check the Request
object in your associated Action class.
Mark
-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 20, 2002 2:49 AM
I have a bunch of checkboxes (filters) on a search screen. I
Hi All,
In a validate routine, if a non-null ActionErrors object is returned, struts
returns to the 'page' identified on the input parameter in the
action-mapping for the action. I need to return to a dynamically determined
'page'. Is this possible? If so, what has to be overridden to make
: [ActionForm] Returning from validate routine
Hi All,
In a validate routine, if a non-null ActionErrors object is returned,
struts
returns to the 'page' identified on the input parameter in the
action-mapping for the action. I need to return to a dynamically
determined
'page
Jim,
Thanks! I was about 1/2 way there - forget to add the .do to the
reference.
Jerry
-Original Message-
From: Jim Crossley [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 10, 2002 12:55 PM
To: Struts Users Mailing List
Subject: Re: [ActionForm] Returning from validate
It's not common practice to put business-data validation in the form beans
validate method, since this belongs in the data object (or
controller/service tier), so you should move that into the action class or
data object classes, and then you can use the database to update and
retrived login
We need to implement '3 strikes and your out' functionality to our logon
process. If the user is unsuccessful after 3 logon attempts, we disable
their account. I put some of the user id / password functionality in the
validate method of the LogonForm class. However, in between each attempt, I
201 - 300 of 449 matches
Mail list logo