You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by David Harland <dh...@ufi.com> on 2007/03/26 16:24:04 UTC
wildcard validate method problem
I have 2 forms in a jsp posting to different methods of the same action.
I have different validation that must be performed in the action
validate method for each of the two methods. How do I distinguish
between the two different methods when the validate method is called or
do I need to create 2 separate actions.
______________________________________________________________________
Ufi Limited
Registered in England No. 3980770
Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP
learndirect Solutions Ltd
Registered in England No. 5081669
Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP
UFI Charitable Trust
Registered in England No. 3658378
Registered Charity No. 1081028
Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP
This email has been scanned by the MessageLabs Email Security System.
______________________________________________________________________
RE: wildcard validate method problem
Posted by David Harland <dh...@ufi.com>.
Just found this. It's already been added.
http://struts.apache.org/2.x/docs/key-changes-from-webwork-2.html
-----Original Message-----
From: Dave Newton [mailto:newton.dave@yahoo.com]
Sent: 26 March 2007 15:44
To: Struts Users Mailing List
Subject: RE: wildcard validate method problem
--- David Harland <dh...@ufi.com> wrote:
> This is validation I must do in the action validate method. Unless I
> can reference session scope variables in the validation xml files.
Never mind then :/
I know prepare${methodName} works; I don't know if that's made its way
into the validation process. If not, and there isn't one already, it
might be worth entering a ticket, as I could see that being useful.
d.
________________________________________________________________________
____________
Sucker-punch spam with award-winning protection.
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
- ------
ML {UFI}
______________________________________________________________________
Ufi Limited
Registered in England No. 3980770
Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP
learndirect Solutions Ltd
Registered in England No. 5081669
Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP
UFI Charitable Trust
Registered in England No. 3658378
Registered Charity No. 1081028
Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP
This email has been scanned by the MessageLabs Email Security System.
______________________________________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: wildcard validate method problem
Posted by Dave Newton <ne...@yahoo.com>.
--- David Harland <dh...@ufi.com> wrote:
> This is validation I must do in the action validate
> method. Unless I can reference session scope
> variables in the validation xml files.
Never mind then :/
I know prepare${methodName} works; I don't know if
that's made its way into the validation process. If
not, and there isn't one already, it might be worth
entering a ticket, as I could see that being useful.
d.
____________________________________________________________________________________
Sucker-punch spam with award-winning protection.
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: wildcard validate method problem
Posted by David Harland <dh...@ufi.com>.
This is validation I must do in the action validate method. Unless I can
reference session scope variables in the validation xml files.
-----Original Message-----
From: Dave Newton [mailto:newton.dave@yahoo.com]
Sent: 26 March 2007 15:31
To: Struts Users Mailing List
Subject: Re: wildcard validate method problem
--- David Harland <dh...@ufi.com> wrote:
> I have 2 forms in a jsp posting to different methods of the same
> action. I have different validation that
> must be performed in the action validate method for each of the two
> methods. How do I distinguish between the two different methods when
> the validate method is called or do I need to create 2 separate
> actions.
S2?
${actionClass}-${methodName}-validation.xml
(IIRC, anyway :/ Away from dev box today!)
d.
________________________________________________________________________
____________
Looking for earth-friendly autos?
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
http://autos.yahoo.com/green_center/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
- ------
ML {UFI}
______________________________________________________________________
Ufi Limited
Registered in England No. 3980770
Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP
learndirect Solutions Ltd
Registered in England No. 5081669
Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP
UFI Charitable Trust
Registered in England No. 3658378
Registered Charity No. 1081028
Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP
This email has been scanned by the MessageLabs Email Security System.
______________________________________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: wildcard validate method problem
Posted by Dave Newton <ne...@yahoo.com>.
--- David Harland <dh...@ufi.com> wrote:
> I have 2 forms in a jsp posting to different methods
> of the same action. I have different validation that
> must be performed in the action validate method for
> each of the two methods. How do I distinguish
> between the two different methods when the validate
> method is called or do I need to create 2 separate
> actions.
S2?
${actionClass}-${methodName}-validation.xml
(IIRC, anyway :/ Away from dev box today!)
d.
____________________________________________________________________________________
Looking for earth-friendly autos?
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
http://autos.yahoo.com/green_center/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org