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
-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
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 can define 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
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/
--
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
--- "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 was able to identify the problem it was only in IE,I put the
showLoadingText="false"
to my save button then it validates correctly before it wasn't able to get
the form values in IE.
still thanks newton.date. :-)
newton.dave wrote:
>
> --- carmi_cd <[EMAIL PROTECTED]> wrote:
>> Hi I have a
--- 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.
>
please help on this issue.
does nobody have any hints?
Thank you in advance,
basti
lbastil wrote:
>
> I use model driven actions and want to use validation by annotation.
>
> so I have somethings like:
>
> @Validation
> public Class ...Action implements ...{
>
> ...
>
>@VisitorField
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
The fieldexpression validator would handle most dependent checks, but i
think there's no out-of-the-box solution if we want the expression to act as
a guard condition alone and not as a validation. Please check the archives
for comments on this.
-Joseph
On 9/11/07, Jiang, Jane (NIH/NCI) [C] <[E
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 f
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="
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!
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 <
.
- 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
Hi.
I've tried using validation annotation (which works great) and ran into the
scenario mentioned by Joseph. I have different action methods which requires
different set of validation rules. I can not find out how to set up
validation annotation to differentiate the validation rules based on whi
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
You should check the Javadoc of the
com.opensymphony.xwork2.validator.annotations.Validation annotation.
Syntax example:
@Validations(
requiredFields =
[EMAIL PROTECTED](type = ValidatorType.SIMPLE,
fieldName = "customfield", message = "You must enter a value for
Hi, my validation file is:
http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";>
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
I have the same problem. Error messages on one form are piling up. Were you
able to resolve this probelm? It only occurs in Firefox as well.
I notice it occurs when you have multiple forms.
Rafael Dittberner wrote:
>
> The first one.
>
> Rafael Dittberner
>
>
> Musachy Barroso escreveu:
>>
al Message-
From: Jeromy Evans [mailto:[EMAIL PROTECTED]
Sent: Monday, July 02, 2007 6:04 PM
To: Struts Users Mailing List
Subject: Re: [S2] Validation alias
Crocker, Patrick wrote:
> Unfortunately, I can't get that
> (MySpringAction-crudsave-validation.xml)
> to work. The vali
Crocker, Patrick wrote:
Unfortunately, I can't get that (MySpringAction-crudsave-validation.xml)
to work. The validation never fires. Am I missing something, or just
barking up the wrong tree all-together?
The last time I checked you had to use the wildcard approach to call
methods in your
2007/6/19, Jeff Amiel <[EMAIL PROTECTED]>:
Ya know...I cannot believe that people categorize the datepicker
'issue' as a 'big issue'.
when I loose several hours trying to make a, as you say, "small 'nice
to have' component", work, in a GA struts version, I call it a "big"
issue (and it's not ad
On 6/19/07, Guillaume Carré <[EMAIL PROTECTED]> wrote:
IMHO (with the broken datepicker tag that is being reworked for 2.1)
this is THE big "issue" with Struts 2.0.x. At least this is mine.
Ya know...I cannot believe that people categorize the datepicker
'issue' as a 'big issue'.
I mean...it'
June 14, 2007 3:32 PM
To: Struts Users Mailing List
Subject: Re: [S2] Validation
One way to know if the validation is detected by struts is using the
config browser plugin
(http://struts.apache.org/2.x/docs/config-browser-plugin.html),
is the "validation" interceptor being applied to y
Yes, both forms have validate="true".
required="true" >
This is the one that works, it is only a test I did while learning S2,
so it is much simplier than the other.
Rafael Dittberner
Musachy Barroso escreveu:
If you have validate="true" on the form, javascript validation will be
perfor
The first one.
Rafael Dittberner
Musachy Barroso escreveu:
On which field are they piling up?
musachy
On 6/14/07, Rafael Dittberner <[EMAIL PROTECTED]> wrote:
In one of my forms the validation error messages are piling up every
time the submit button is pressed. This only occurs in Firefox
If you have validate="true" on the form, javascript validation will be
performed before submitting the form, do you have that in both forms?
musachy
On 6/14/07, Rafael Dittberner <[EMAIL PROTECTED]> wrote:
If I uncheck the Tools|Options|Content|Enable Javascript option in FF it
works ok. But i
One way to know if the validation is detected by struts is using the config
browser plugin (http://struts.apache.org/2.x/docs/config-browser-plugin.html),
is the "validation" interceptor being applied to your action? In any case,
posting the action mapping and the class would help.
musachy
On 6/
If I uncheck the Tools|Options|Content|Enable Javascript option in FF it
works ok. But it does not answer the question why one form works and the
other don't.
Rafael Dittberner
Rafael Dittberner escreveu:
In one of my forms the validation error messages are piling up every
time the submit bu
On which field are they piling up?
musachy
On 6/14/07, Rafael Dittberner <[EMAIL PROTECTED]> wrote:
In one of my forms the validation error messages are piling up every
time the submit button is pressed. This only occurs in Firefox and only
with this form. I have other form working well both i
It looks to me like a typo in your xml or the naming of your xml file:
Pasted as *Java* by *Logon-validaiton.xml
*should be logon-validation.xml
robinbajaj wrote:
Here's my Logon-Validation.xml
http://rafb.net/p/FToVf186.html
--
Well, I still couldn't succeed in implementing validation with Struts 2, so
I can't help you :(
2007/5/29, Vijay Prajapati <[EMAIL PROTECTED]>:
Hi Olivier,
I am using Struts2.0.6 and trying to implement Validator framework
but
couldn't succeed. I have confution to give name of
actionname-
Hi Olivier,
I am using Struts2.0.6 and trying to implement Validator framework but
couldn't succeed. I have confution to give name of
actionname-validator.xmlfile.
I am here giving action cofiguration in Struts.xml
/adduser.jsp
/adduser.jsp
I have implemented UserManagementAction.java with
I think you have to add validation interceptor to your action.
Try something like that :
Menu
/jsp/Logon.jsp
Hope it helps ;)
2007/5/29, robinbajaj <[EMAIL PROTECTED]>:
I am a Struts 2 newbie. The validation p
You can use the notify topics to validate the date and cancel the request if
the date is not valid. On 2.0.6 I don't think there is any way to get Struts
do it for you. On 2.1 you can mix ajax with validation so any validation
supported by struts can be used with the ajax tags.
musachy
On 5/21/0
--- Skip Hollowell <[EMAIL PROTECTED]> wrote:
> minLength and maxLength (case is important and I am
> an idiot)
;) I'd bet we'd turn the game over if we all kept
score on stuff like that!
d.
Never miss an em
minLength and maxLength (case is important and I am an idiot)
Done and done. Thanks Dave for helping where you could. Much appreciated.
Skip.
Skip Hollowell wrote:
Now, if I could only figure out why I am getting errors on the minlength
and maxlength of my stringlength validator:
--- Skip Hollowell <[EMAIL PROTECTED]> wrote:
> Now, if I could only figure out why I am getting
> errors on the minlength and maxlength of my
> stringlength validator:
> 4
> 4
Try minLength/maxLength.
> WARNING: Caught OgnlException while setting property
> 'minlength' on ty
The file name for the validation file is:
{ActionName}-{AliasName}-validation.xml
In my case:
AccountAction-Payment_retrieveFee-validation.xml
Now, if I could only figure out why I am getting errors on the minlength
and maxlength of my stringlength validator:
OK, I think I may be on to something here...
In this particular Action, I am working with a Payment class, instead of
individual fields. that may very well be where all of my trouble is.
align="center"/>
So say I want to validate the ccNumber and ccExpDate. These are part of
my Pa
1 - 100 of 114 matches
Mail list logo