cilquirm wrote:
>
> I believe you can use validation annotation to specify validation routines
> at the method level.
>
>
>
>
> ros wrote:
>>
>> Hi!
>>
>> How to configure struts2 validation for only one method in action?
>>
>> Thanks.
>>
>
>
You can disable one action with the annot
Dale Newfield wrote:
Allen Gilliland wrote:
Would you mind sharing a couple details about how you have it
configured, because if it's working for you then I suppose I must be
doing something wrong? I am using Struts 2.0.5.
Sure. I'll just mirror your snippets with my own. I am also using
Allen Gilliland wrote:
Would you mind sharing a couple details about how you have it
configured, because if it's working for you then I suppose I must be
doing something wrong? I am using Struts 2.0.5.
Sure. I'll just mirror your snippets with my own. I am also using 2.0.5.
What I have in
Dale Newfield wrote:
Allen Gilliland wrote:
I tried out using the validation annotations to only validate a
specific action method but the result is the same, it just does the
validation on all methods :/
I use the ActionName-methodName-validation.xml technique.
Would you mind sharing a c
Allen Gilliland wrote:
I tried out using the validation annotations to only validate a specific
action method but the result is the same, it just does the validation on
all methods :/
I use the ActionName-methodName-validation.xml technique.
Just because the ActionName-validation.xml file is
I tried out using the validation annotations to only validate a specific
action method but the result is the same, it just does the validation on
all methods :/
This is what I tried ...
@Validation()
public class MyAction extends ActionSupport {
... yada yada ...
public String execute()
Allen Gilliland wrote:
Do you have a link to some docs on how to use annotations to specify
validation rules? I haven't seen anything about that yet.
ack, never mind, i see the link now :/
http://struts.apache.org/2.x/docs/validation-annotation.html
I am attempting to do the same thing
Do you have a link to some docs on how to use annotations to specify
validation rules? I haven't seen anything about that yet.
I am attempting to do the same thing and it definitely isn't working
properly. If you simply use a validator for the entire Action defined
in ActionName-validation.x
Java Script validation fro button disabled by
ros wrote:
>
> If I have in one form DELETE and SAVE buttons, how to turn off client side
> validation for DELETE button?
>
--
View this message in context:
http://www.nabble.com/struts2-validation-for-only-one-method-in-action-tf3267302.html
I assume for action:
public class TicketAction extends com.opensymphony.xwork2.ActionSupport {
...
public string save() {
...
}
...
}
the file name should be TicketAction-save-validation.xml ???
File with such name is ignored on form submit.
Only TicketAction-validation.xml is valid file name
Ok, but what about annotations without xmls?
Musachy Barroso escreveu:
See here:
http://struts.apache.org/2.x/docs/validation.html
you can add a file ActionName-MethodName-validation.xml with the
validation
for that method.
regards
musachy
On 2/21/07, cilquirm <[EMAIL PROTECTED]> wrote:
See here:
http://struts.apache.org/2.x/docs/validation.html
you can add a file ActionName-MethodName-validation.xml with the validation
for that method.
regards
musachy
On 2/21/07, cilquirm <[EMAIL PROTECTED]> wrote:
I believe you can use validation annotation to specify validation routines
I believe you can use validation annotation to specify validation routines at
the method level.
ros wrote:
>
> Hi!
>
> How to configure struts2 validation for only one method in action?
>
> Thanks.
>
--
View this message in context:
http://www.nabble.com/struts2-validation-for-only-one-
13 matches
Mail list logo