Have you tried validate="true" in ? It should work, maybe
just add
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
2013/5/23 Frans Thamura :
> Hi All
>
> anyone have idea how to implement validation xml inside s2
> (serverside), and link with bootstrap theme UI.
>
> the idea is t
Hi All
anyone have idea how to implement validation xml inside s2
(serverside), and link with bootstrap theme UI.
the idea is to make 1 parameter, validation.xml is ok, and we can
manage both validation in serverside and client side..
NB: We use S2Bootstrap plugins
---
Hi,
In the validation, short-circuit is for when the validation failed, the
following not get rules not get evaluate.
Is there anything similar like this, but when one field validation pass, the
rest no need to get evaluate?
Regards
LV
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Wes,
Sorry for the delay in replying... I hadn't noticed that your reply was
here.
On 4/28/2010 11:49 AM, Wes Wannemacher wrote:
> I can understand your desire to remove the dependency of struts,
> making your actions reusable. But at the same time,
Chris,
There are a few non-struts/xwork-validation plugins that integrate
with general purpose validation mechanisms. Off the top of my head, I
remember this -
https://cwiki.apache.org/confluence/display/WW/OVal+Plugin
But, I think there are two distinctly different things you are
considering he
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Rahul,
On 4/27/2010 1:09 AM, Rahul Mohan wrote:
> I think the fundamental mechanism of S2 is the configurable interceptor
> stack where each interceptor applies itself to the current action based on
> the interfaces the action implements. You can st
. Lets S2 (
or rather xwork ) take care of the wiring. Essentially, building your
framework using the underlying configurable interceptor stack mechanism.
Does that answer your question?
- Rahul
From:
Christopher Schultz
To:
Struts Users Mailing List
Date:
27-04-2010 02:29
Subject:
Re: S2
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
All,
Bump: does anyone have any ideas?
Thanks,
- -chris
On 4/12/2010 4:48 PM, Christopher Schultz wrote:
> All,
>
> It's been a long time since I've posted, and I've got my eye on S2 for
> some upcoming work that will share code with a non-web-base
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
All,
It's been a long time since I've posted, and I've got my eye on S2 for
some upcoming work that will share code with a non-web-based interface
so I'd like to re-use as much code as possible without tying myself to
the S2 API.
The issue is with fi
Hi,
Could someone tell me does struts2 support it?
Regards
LV
From: "mailtolouis2020-str...@yahoo.com"
To: Struts Users Mailing List
Sent: Thu, January 21, 2010 12:24:13 PM
Subject: [S2] Validation - globally define regex
Hello,
In struts 1, I
Hello,
In struts 1, I can define the regex in one file like this
alphaNumeric
[A-Za-z0-9]*
and use like this in
mask
${alphaNumeric}
Could anyone tell me how to achieve this in Struts 2 ?
I've this in validation rule and I want to put the regex in another variable, I
tried used tag, but
Hello,
I am trying to use client side validations through ...-validation.xml in
struts2
I have it working but only for text and file input fields. I need to
validate if a checkbox is checked. using "required" or "requiredstring"
validators always validates as the field as a value even if you don't
Apparently it isn't working as I expected. I would really like to understand
how this works.
Here is my form tag:
Here is my struts.xml entry:
ScheduleDetailAction_update
Here is partial contents of my
ScheduleDetailAction-ScheduleDetailAction_updateSchedule-validation.xml
e (and not persist)
Chris
-Original Message-
From: Musachy Barroso
To: Struts Users Mailing List
Sent: Tue, Nov 17, 2009 6:17 pm
Subject: Re: s2: Validation xml file not being used when validating a method
It can be done like that as well, but, your first attempt should
Thanks for the replies, I have it working now.
I think the problem was that the name I used in the form action
(ScheduleDetailAction_update) did NOT have a mapping in my struts.xml file.
I had assumed that because the method was eventually being called that I had
configured everything correctly
It can be done like that as well, but, your first attempt should be
better. The "alias" part is the action name, lets say you have an
action like this:
/survey/survey-results.jsp
/survey/survey.jsp
you would need to name the validation file
"SurveyA
So it's done strictly by exclusion? I *thought* I had read that the
validation could be focused on a specific method through the naming
convention of the validation file(s). Is that idea totally wrong?
--
View this message in context:
http://old.nabble.com/s2%3A-Validation-xml-file-not-being-us
ben_979 escribió:
I'm trying to figure out the validation framework, and I don't have a clear
understanding from the docs I've read where I'm going wrong, so if someone
could point me in the right direction I'd appreciate it.
I'm trying to validate ONLY when a particular method of an action clas
For sake of completeness, I have decided to drop the Validation.xml route
and go with the plain old java validation. Time is running, and so am I. :)
On Tue, Sep 29, 2009 at 1:06 PM, maestro wrote:
> I have searched and compared to no avail.
> This one has been stumping me for some time now.
> I
I have searched and compared to no avail.
This one has been stumping me for some time now.
I'm trying to use the validation.xml. I have it working on one page and not
on the other.
Perhaps you can spot the error?
struts.xml
/WEB-INF/customer/update.jsp
cust
Hi,
I'm using Struts 2 + Spring + Apache CXF, I've all my validation rule in struts
2 xml files, is it possible to use these validation in the web services? and
how?
Thanks
LV
I've just upgraded to 2.0.14 (from 2.0.11) in the hopes that it would
solve a problem where validation messages are being truncated. I have
a -validation.xml with 26 fields, each field having at least
one field-validator. The validation works fine on all fields except
there is always one
An: "Struts Users Mailing List"
> Betreff: Re: RE: [S2]Validation with xml file not working
> About the interceptors on the default stack I don't know how to check
> that since it's built in. But "Struts in Action" says that in the
> struts-default.xml,
Ok, I found it. But (as the book said) , "validation" comes before
"workflow" in the "validationWorkflowStack", so there has to be some
other explanation for the exception.
/Ylva
On Fri, Aug 15, 2008 at 1:59 PM, Torsten Krah
<[EMAIL PROTECTED]> wrote:
> Am Freitag, 15. August 2008 00:22:01 schrie
Am Freitag, 15. August 2008 00:22:01 schrieb Stephan Schröder:
> i don't know which interceptors are on your default stack. Does 'workflow'
> come after 'validation'?
Look into struts-default.xml in the struts-2.x.jar file, there you can see all
stacks defined with their interceptors.
--
Bitte
ble.)
>
> Original-Nachricht
>> Datum: Thu, 14 Aug 2008 18:38:02 -0700 (PDT)
>> Von: Dave Newton <[EMAIL PROTECTED]>
>> An: Struts Users Mailing List
>> Betreff: RE: [S2]Validation with xml file not working
>
>> I think he was asking the or
MAIL PROTECTED]>
> An: Struts Users Mailing List
> Betreff: RE: [S2]Validation with xml file not working
> I think he was asking the original poster if *his* stack included those
> interceptors in the correct order, since it's his validation that isn't
> working pr
party other than intended recipient. Sender does not
> necessarily endorse content contained within this
> transmission.
>
>
> > Date: Fri, 15 Aug 2008 00:22:01 +0200
> > From: [EMAIL PROTECTED]
> > Subject: Re: [S2]Validation with xml file not working
> > To: user@st
[EMAIL PROTECTED]
> Subject: Re: [S2]Validation with xml file not working
> To: user@struts.apache.org
>
> > What could it be?
>
> i don't know which interceptors are on your default stack. Does 'workflow'
> come after 'validation'?
>
> /Stephan
>
IL PROTECTED]>
> An: "Struts Users Mailing List"
> Betreff: Re: [S2]Validation with xml file not working
> Lukasz, I'm not sure how to check the deployment but I was thinking
> that too. (I'm using NetBeans 5.5.1 and Sun App. server.)
>
> André, it's
Lukasz, I'm not sure how to check the deployment but I was thinking
that too. (I'm using NetBeans 5.5.1 and Sun App. server.)
André, it's funny you should mention that because I just changed the
name From .-validation.xml to -validations.xml because they
must have misspelled it in one plac
Maybe it's just because of the misspelling.
If you'd like to do validation this way,
your xml-file should be named
"NameAndCvAction-validation.xml" without
the "s" at the end.
Ylva Degerfeldt wrote:
> Hi everyone,
>
> I'm trying to use the Validation framework by creating a file called
> NameAndC
Did you check also the deployment, on the server? Eclipse will not
copy other files then Java classes when you will deploy. Check if xml
file is in the same package after deploy to the server.
Regards
--
Lukasz
http://www.lenart.org.pl/
--
Hi everyone,
I'm trying to use the Validation framework by creating a file called
NameAndCvAction-validations.xml, for my action "NameAndCvAction", but
it's not working the way it should.
I've stepped through the code and it seems that the validations that
should have been made through the xml fil
Have you set the validateAnnotatedMethodOnly property on the validation
interceptor in your struts.xml? (
http://struts.apache.org/2.0.11.1/docs/validations-annotation.html)
On Tue, Jun 24, 2008 at 10:21 AM, xianwinwin <[EMAIL PROTECTED]> wrote:
>
> I tried to do something with RequiredFieldValid
I tried to do something with RequiredFieldValidator,
@Validations(
stringLengthFields [EMAIL PROTECTED](type =
ValidatorType.SIMPLE, trim = true, minLength="1" , fieldName = "empl.name",
message = "required field")},
requiredFields =[EMAIL PROTECTED](type =
Validat
Fair enough. Is this something you could solve with a validate() method on
your action, assuming that your action is ValidationAware?
On Tue, Jun 24, 2008 at 9:45 AM, xianwinwin <[EMAIL PROTECTED]> wrote:
>
> But that means that ALL objects type Empl will have a mandatory field
> called
> DOB. I
But that means that ALL objects type Empl will have a mandatory field called
DOB. I wish to have more flexibility by choosing the mandatory field based
on the user's action.
Jim Kiley wrote:
>
> If "empl" is a field on your action, and your JSP references the field as
> "empl.date," put the
If "empl" is a field on your action, and your JSP references the field as
"empl.date," put the validation on the setter for the date field of Empl,
rather than on the action.
On Tue, Jun 24, 2008 at 9:06 AM, xianwinwin <[EMAIL PROTECTED]> wrote:
>
> hi Lukasz
>
> In your example, you wrote:
>
> P
hi Lukasz
In your example, you wrote:
Private Date today;
@RequiredFieldValidator(message = "Date is required")
public Date getToday() {
return today;
}
this works great also in my application, but my question is different, I
don't have a field called today, I have an obj
Hi,
> This also works on my end *BUT* the Date in part of an Object (not a field)
Could you show your configuration?
Regards
--
Lukasz
http://www.lenart.org.pl/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comma
This also works on my end *BUT* the Date in part of an Object (not a field)
so I have Employee empl;
with Date dob,
thank you
Lukasz Lenart wrote:
>
>> I did, and it doesn't work, when I click submit, I immediately get a red
>> message next to the required fields...but not next to the dat
> I did, and it doesn't work, when I click submit, I immediately get a red
> message next to the required fields...but not next to the date.
That strange, I made a test and it works, I've annotated at setter level
@RequiredFieldValidator(message = "Date is required")
public Date getToday(
I did, and it doesn't work, when I click submit, I immediately get a red
message next to the required fields...but not next to the date.
Lukasz Lenart wrote:
>
> Hi,
>
> Did you try
> @RequiredFieldValidator(type = ValidatorType.SIMPLE, fieldName =
> "customfield", message = "You must enter
Hi,
Did you try
@RequiredFieldValidator(type = ValidatorType.SIMPLE, fieldName =
"customfield", message = "You must enter a value for field.")
?
Regards
--
Lukasz
http://www.lenart.org.pl/
-
To unsubscribe, e-mail: [EMAIL PROT
I was wondering how to force the user to input a Date field? consider the a
class of Employee (dob, name).
and I wish to insert new data.
I managed to force the date by the code below, but couldn't do that for the
date.
example
Class Test {
private Employee empl;
@Validations(
--- "Allen, Daniel" <[EMAIL PROTECTED]> wrote:
>/>
>
> I guess I could manually call Spring from Java code to fill in the
> log-in checker class, but this way I can keep Spring entirely out of my
> code's [direct] dependencies [...] If there's a simpler way to tell Struts
> to use
Yeah, I know, my spelling is terrible in code. All I can say in my
defense is that I go back and fix it with Eclipse's refactoring tools at
the end, before anyone else at the company has to see it. That doesn't
save you poor souls on the user list who are subjected to my interim
incompetence, thoug
--- "Allen, Daniel" <[EMAIL PROTECTED]> wrote:
> Is there a way to prevent the validation from firing unless the user is
> coming back to it after attempting to log in?
By default the validation interceptor won't check a set of action methods,
including the "input" method. The easiest thing, IMO,
I've set up a login page for my site, and I've used the ValidationAware
interface on LoginAction in order to display errors on the login form
when the user name or password is incorrect. However, this has one
unintended result: the first time the user navigates to
"server.com/webapp/login.action",
setters for
> "lastName" and so on, or are you assuming there's a getEdituser() and all
> the
> values are being set on the edituser bean?
>
> Dave
>
>
>
> ---------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional
--- carmi_cd <[EMAIL PROTECTED]> wrote:
> Hi I have an application in Struts 2, my problem is when
> i try to submit the form even if there are values in the
> form input box it stills give validation message to the
> user to enter values for the required fields.
>
> here is my form fields.
>
duleBean();
setModules(moduleBean.getAllModule());
}
please help me. Thanks in advance for your help.
--
View this message in context:
http://www.nabble.com/-S2--Validation-tp15539111p15539111.html
Sent from the Struts - User mailing list archive at Na
Le mardi 08 janvier 2008 à 14:08 +0100, Martin Braure de Calignon a
écrit :
Sorry I've forgot [S2] in subject
> Hello,
>
> I'm currently using struts2 for a project.
> I want to validate all elements of a list (each elements should have a
> non-empty value, or the list should be empty).
>
> wha
xml approach on method level (--validation,xml),
but because on Action Level the configuration for both methods is the same
(the
visitor field validator) it seems to be no help ...
thank you very much in advance,
basti
--
View this message in context:
http://www.nabble.com/-s2--validation-on
hod method : methods) {
> if(method.getName().equals("setSubModel")){
> System.out.println("method: " + method.getName());
> Annotation[]annotations = method.getAnnotations();
> System.out.println("annotation size: &
thank you in davance
--
View this message in context:
http://www.nabble.com/-S2--validation-annotation-problem-tf4684043.html#a13384745
Sent from the Struts - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
You should have a look at this one:
http://www.nabble.com/Re%3A-S2-%3A-Validation-per-Action-method---ideas--p12753992.html
I ended up following this lead, and it works nice.
Or you could try this:
http://www.nabble.com/Re%3A-S2-%3A-Validation-per-Action-method---ideas--p12090749.html
beto
user@struts.apache.org
Subject: RE: S2 : Validation per Action method - ideas?
I got a problem like this
I have 2 mothods caled edit() and create() I used annotation based
validation
but tthing is i want to validate some of experssions in edit method and
some
of the in create() method
cant use @skipValidati
I got a problem like this
I have 2 mothods caled edit() and create() I used annotation based
validation
but tthing is i want to validate some of experssions in edit method and some
of the in create() method
cant use @skipValidation in this
my problem is i can not difine this seperatly in my acti
With some work, the annotations could be as flexible as the XML
validations. The messy problem in either case is being able to express
when and when-not to inherit validations from parent classes.
Right now, you can shut off the inheritance of validations (as
Veronica described), but it shuts off
that maybe used by more than one action.
-Original Message-
From: cilquirm [mailto:[EMAIL PROTECTED]
Sent: 18 September 2007 15:41
To: user@struts.apache.org
Subject: RE: S2 : Validation per Action method - ideas?
I'm not sure I follow how validation is more flexible when
ent validation. This can get messy.
>
>
> Regards
>
> David
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
> Ted Husted
> Sent: 18 September 2007 11:12
> To: Struts Users Mailing List
> Subject: Re: S2 : Validatio
wanting different validation. This can get messy.
Regards
David
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Ted Husted
Sent: 18 September 2007 11:12
To: Struts Users Mailing List
Subject: Re: S2 : Validation per Action method - ideas?
* http
ocumentation that shows you how to
> configure validation per action method using the validation xml files?
> Or is this not possible?
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
> Ted Husted
> Sent: 18 September 2007 10:27
> T
To: Struts Users Mailing List
Cc: [EMAIL PROTECTED]
Subject: Re: S2 : Validation per Action method - ideas?
I opened
* https://issues.apache.org/struts/browse/WW-2191
for this, and noted the setting in the Validators documentation.
Thanks for pointing this out, Veronica!
-Ted.
On 8/10/07
I opened
* https://issues.apache.org/struts/browse/WW-2191
for this, and noted the setting in the Validators documentation.
Thanks for pointing this out, Veronica!
-Ted.
On 8/10/07, Veronica Iturrioz <[EMAIL PROTECTED]> wrote:
> You must to set the property validateAnnotatedMethodOnly=true, a
Hope it helps.
field1 == null || field2 != null
field 2 is required when field 1 is not null
-Original Message-
From: j alex [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 11, 2007 4:28 PM
To: Struts Users Mailing List
Subject: Re: [S2] validation issue
null
field 2 is required when field 1 is not null
-Original Message-
From: j alex [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 11, 2007 4:28 PM
To: Struts Users Mailing List
Subject: Re: [S2] validation issue
The fieldexpression validator would handle most dependent c
I) [C] <[EMAIL PROTECTED]> wrote:
>
> Did you look into expression validator?
>
> -Original Message-
> From: Pablo Vázquez Blázquez [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 11, 2007 10:28 AM
> To: Struts Users Mailing List
> Subject: [S2] validation
Did you look into expression validator?
-Original Message-
From: Pablo Vázquez Blázquez [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 11, 2007 10:28 AM
To: Struts Users Mailing List
Subject: [S2] validation issue
Hi all!
I´m trying to validate two fields that depends on another
In Struts2 there are no forms...
Yes, no forms.
I think there is an interceptor interface called ValidationAware and
there it can be the cue, but I´m not sure and I suppose there should
be another easier way of doing what I want...
Jorge Martín Cuervo escribió:
sorry, i have no experience wit
sorry, i have no experience with struts2.
I only use classic struts:
http://struts.apache.org/1.3.8/faqs/validator.html
Maybe you can create your own validwhen validator rule in struts2. I
integrated commons validator in my own project and i reused some struts
validwhen code.
Validwhen uses an
Hola Jorge,
I think there is not a "validwhen" validator, either...
Any idea? Thanks.
Jorge Martín Cuervo escribió:
try validwhen validation rule. It exists in struts, maybe exists too in
struts2.
El mar, 11-09-2007 a las 16:27 +0200, Pablo Vázquez Blázquez escribió:
Hi all!
I´m trying t
try validwhen validation rule. It exists in struts, maybe exists too in
struts2.
El mar, 11-09-2007 a las 16:27 +0200, Pablo Vázquez Blázquez escribió:
> Hi all!
>
> I´m trying to validate two fields that depends on another field.
>
> What I was doing in S1 is (for field "in"):
>
>
> key="
Hi all!
I´m trying to validate two fields that depends on another field.
What I was doing in S1 is (for field "in"):
key="ErrorMessages.applicationIdRepresent.sameReference"/>
field[0]
editParams
fieldTest[0]
NOTNULL
But now in S2, there is no "r
Use wildcards for your actions.
The action's alias now includes the method name. Refer to the action by
it's alias matching the wildcard:
Use the validation filenames ActionClassName-alias-validation.xml:
MyAction-abc_methodA-validation.xml
MyAction-abc_methodB-validation.xml
Refe
Resend
On 8/20/07, j alex <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Just checking one more time if someone has an answer to my below email. We
> decided to go with XML validation, and as i understand it, we cannot have
> validation files based on action methods, but can only name it by action
> alias
Resending...
On 8/20/07, j alex <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Just checking one more time if someone has an answer to my below email. We
> decided to go with XML validation, and as i understand it, we cannot have
> validation files based on action methods, but can only name it by action
>
Hi,
Just checking one more time if someone has an answer to my below email. We
decided to go with XML validation, and as i understand it, we cannot have
validation files based on action methods, but can only name it by action
alias. This makes me create a new action alias entry in struts.xml for e
Hi!
method="..." is exactly what I have been looking for. Sorry for disturbing the
list, I didn't expect it to be that easy. :)
Thanks!
Sandro
On Friday 17 August 2007 14:22:57 j alex wrote:
> Assuming that Add, Back , Fwd are different methods in the same
> Action, you could use s:submit meth
Hi!
method="..." is exactly what I have been looking for. Sorry for disturbing the
list, I didn't expect it to be that easy. :)
Thanks!
Sandro
On Friday 17 August 2007 14:22:57 j alex wrote:
> Assuming that Add, Back , Fwd are different methods in the same
> Action, you could use s:submit meth
Assuming that Add, Back , Fwd are different methods in the same
Action, you could use s:submit method="Add" to post to Add method, and
define the validations for that method using annotation . I havent
tried if the non-field level validators get executed at this point
On 8/17/07, Sandro Giessl <
Hi,
I have one form which submits data to one action. However there are different
s:submit-buttons in the form (Add Row, Back, Forward).
Full validation should only happen if "Forward" has been clicked. The other
buttons should only validate some non-required field formats
(Int-Validator, ...).
.
- Original Message
From: beto <[EMAIL PROTECTED]>
To: user@struts.apache.org
Sent: Friday, August 10, 2007 8:54:02 AM
Subject: RE: S2 : Validation per Action method - ideas?
I tried removing annotations from the execute method, and the field "confirm"
is still getting val
st, let the validations annotation on only one method and check
> what happens.
>
> -Message d'origine-
> De : beto [mailto:[EMAIL PROTECTED]
> Envoyé : vendredi 10 août 2007 13:21
> À : user@struts.apache.org
> Objet : RE: S2 : Validation per Action method - id
happens.
-Message d'origine-
De : beto [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 10 août 2007 13:21
À : user@struts.apache.org
Objet : RE: S2 : Validation per Action method - ideas?
Yes, I removed the annotations from the setters. I might be overlooking
something, but I'm not
validation annotations on
> the
> field setters?
>
> -Message d'origine-
> De : beto [mailto:[EMAIL PROTECTED]
> Envoyé : vendredi 10 août 2007 11:56
> À : user@struts.apache.org
> Objet : RE: S2 : Validation per Action method - ideas?
>
>
> Hi again, and
Pretty strange indeed. Did you remove all the validation annotations on the
field setters?
-Message d'origine-
De : beto [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 10 août 2007 11:56
À : user@struts.apache.org
Objet : RE: S2 : Validation per Action method - ideas?
Hi again, and
tty confusing but the functionality quite neat.
>
> http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/va
> lidator/annotations/Validations.html
>
> -Message d'origine-
> De : beto [mailto:[EMAIL PROTECTED]
> Envoyé : vendredi 10 août 2007 1
origine-
De : beto [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 10 août 2007 10:57
À : user@struts.apache.org
Objet : RE: S2 : Validation per Action method - ideas?
Hi.
I've tried using validation annotation (which works great) and ran into the
scenario mentioned by Joseph. I have different
lue for
> string.")}
>
> )
> public String execute() throws Exception {
> return SUCCESS;
> }
>
> -Message d'origine-
> De : j alex [mailto:[EMAIL PROTECTED]
> Envoyé : jeudi 9 août 2007 15:38
> À : Struts Users Mail
Specify your validation rules in a file called
MyActionClass-myAction-validation.xml where MyActionClass is the
action class and myAction is the name of the action being executed.
So your struts.xml would look something like:
...
With this setup the validation in
MyActionClass-myAction-validation
return SUCCESS;
}
-Message d'origine-
De : j alex [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 9 août 2007 15:38
À : Struts Users Mailing List
Objet : S2 : Validation per Action method - ideas?
Hi,
Is there a way to declaratively restrict validations depending on the method
Hi,
Is there a way to declaratively restrict validations depending on the method
within the Action? - this could be useful for wizard-like forms where each
step of the wizard has a set of fields ; corresponds to a different method
but all of them share the same Action.
I can think of having an ex
a task of DTD attached.
> Please put DTD (or Schema) to the XMLs and it will cure
> your issues.
> (In 2.0.9 DTDs became required for validator XMLs I think)
>
> Oleg
>
> -
> To unsubscribe, e-mail: [EMAIL PR
nodep wrote:
and it's wrong because there's a tag "field-validator" not closed.
Struts2 doesn't stop the flow and go to my action: for me it's not logic,
it should stop with some error and return to the prev page ...
What do you think?
We think that XML validity check is a task of DTD attac
doesn't stop the flow and go to my action: for me it's not logic,
it should stop with some error and return to the prev page ...
What do you think?
Stefano :)
--
View this message in context:
http://www.nabble.com/-S2--validation-continue-even-if-there-is-an-error-tf4230757.html#a12
I have a form that uses the validation framework so when the user
submits a page I have a /myform.jsp
statement that re-renders the input form and displays the fields that
failed validation. The problem I'm running into is that I have a option
transfer select field and once the form is re-rend
no máximo 70
>>> caracteres.
>>>
>>>
>>>
>>>
>>> 50
>>> O campo cidade deve ter no máximo 50
>>> caracteres.
>>>
>
1 - 100 of 156 matches
Mail list logo