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 annotation
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
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
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:
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
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
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
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
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:
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
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:
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
Java Script validation fro button disabled by
s:submit cssClass=button method=delete key=button.delete
onclick=document.getElementById('ticketForm').onsubmit = null; /
ros wrote:
If I have in one form DELETE and SAVE buttons, how to turn off client side
validation
13 matches
Mail list logo