Re: Validation using annotations with two execute methods are applied always

2015-12-17 Thread Łukasz Lenart
What about switching validateAnnotatedMethodOnly? This is going to be default in 2.5 probably https://struts.apache.org/docs/validations-annotation.html (mobile) 17 gru 2015 23:29 "JOSE L MARTINEZ-AVIAL" napisał(a): > Hello, > I'm using Struts 2.3.24.1. I have an action that has two execut

Re: Validation using annotations with two execute methods are applied always

2015-12-17 Thread Adam Brin
You might be better off splitting the two actions into two different classes. As far as I know that's the only way to address the issue. If you have shared logic or fields, you can always put those in a superclass. On Thu, Dec 17, 2015 at 3:28 PM, JOSE L MARTINEZ-AVIAL wrote: > Hello, > I'm

Validation using annotations with two execute methods are applied always

2015-12-17 Thread JOSE L MARTINEZ-AVIAL
Hello, I'm using Struts 2.3.24.1. I have an action that has two execute methods, and it is used by two actions, as follows: Each method has its own validations, defined by annotations at the method level. @Validations(requiredStrings = { @RequiredStringVal

Re: using annotations with struts 2 in jboss not finding actions

2012-10-02 Thread Lukasz Lenart
2012/10/1 jdtommy : > Yes. Struts 2 Nice :-) But could you be more precise ? http://struts.apache.org/downloads.html http://struts.apache.org/downloads.html#PriorReleases Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ -

Re: using annotations with struts 2 in jboss not finding actions

2012-10-01 Thread Lukasz Lenart
Struts2 version ? -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

RE: using annotations with struts 2 in jboss not finding actions

2012-09-28 Thread jdtommy
I think this works in jboss 5.x or above. I am using Jboss 4. If this is incorrect please let me know. -- View this message in context: http://struts.1045723.n5.nabble.com/using-annotations-with-struts-2-in-jboss-not-finding-actions-tp5710681p5710683.html Sent from the Struts - User mailing

RE: using annotations with struts 2 in jboss not finding actions

2012-09-28 Thread Martin Gainty
manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Fri, 28 Sep 2012 09:57:32 -0700 > From: jdto...@gmail.com > To: user@struts.apache.org > Subject: using annotations with struts 2 in jboss not finding actions > > The application is using

using annotations with struts 2 in jboss not finding actions

2012-09-28 Thread jdtommy
rl set before the regex comparison code is run, I just don't know what that is -- View this message in context: http://struts.1045723.n5.nabble.com/using-annotations-with-struts-2-in-jboss-not-finding-actions-tp5710681.html Sent from the Struts - User mailing list archive at

Re: result-type using annotations

2010-07-13 Thread JP Cafaro
son result type, i.e., @Result(name="foo", type="json", ...) or you could set the contentType in your @Result params as application/json and have your associated template emit the exact json that you want to return. On Tue, Jul 13, 2010 at 5:34 AM, JP Cafaro wrote: Is it possible

Re: result-type using annotations

2010-07-13 Thread Allen Lee
have your associated template emit the exact json that you want to return. On Tue, Jul 13, 2010 at 5:34 AM, JP Cafaro wrote: > Is it possible to declare result-type using annotations?  For example, when > trying to return an object, that gets serialized to json, is it possible to > move away f

result-type using annotations

2010-07-13 Thread JP Cafaro
Is it possible to declare result-type using annotations? For example, when trying to return an object, that gets serialized to json, is it possible to move away from the struts.xml and do it via annotations - To unsubscribe

Re: Validation referencing problem, using annotations

2008-08-15 Thread Randy Burgess
: Fri, 15 Aug 2008 14:16:36 +1000 > To: > Subject: Validation referencing problem, using annotations > > Hi guys > I'm close to finishing my 1st project with struts2, which I'm quite excited > about. I've gotten around to validation (!). > > I'm

Validation referencing problem, using annotations

2008-08-14 Thread dug .
Hi guys I'm close to finishing my 1st project with struts2, which I'm quite excited about. I've gotten around to validation (!). I'm having some issues getting validation to work on one of my actions. I can't reference the variables from the web page in order to validate them. I've named the varia

Re: Using annotations

2007-10-07 Thread Zarar Siddiqi
quot;, sequenceName = "sqc_cliente") > public class Cliente { > > ... > > @EmailValidator(message = "dfdfdf") > public String getBairro() { > return bairro; > } > > ... > > } > > > > > > &

Using annotations

2007-10-05 Thread Guilherme
e(name="cliente") @SequenceGenerator(name = "sqc_cliente", sequenceName = "sqc_cliente") public class Cliente { ... @EmailValidator(message = "dfdfdf") public String getBairro() { return bairro; } ... } These is my configurations do vali

[S2] [ANN] Struts 2.0 Validations using Annotations article

2007-05-31 Thread Ted Husted
Struts 2.0 Validations using Annotations By Krishna Srinivasan "How easy it was to get fairly complex server side validation working with Struts 2 by just using annotations. No XML whatsoever. Struts 2.0 comes with new set of Robust Validation Features. Most of the common Validation Activ