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
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
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
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/
-
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
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
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
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
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
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
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
: 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
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
quot;, sequenceName = "sqc_cliente")
> public class Cliente {
>
> ...
>
> @EmailValidator(message = "dfdfdf")
> public String getBairro() {
> return bairro;
> }
>
> ...
>
> }
>
>
>
>
>
>
&
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
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
16 matches
Mail list logo