Thanks for the informations
De : Lukasz Lenart
À : Struts Users Mailing List
Envoyé le : Jeudi 19 septembre 2013 7h59
Objet : Re: validator type="regex" : param name is regex , not expression
Sometime ago ... with 2.3.12. I have renamed exp
Sometime ago ... with 2.3.12. I have renamed expression to regex as
right now you can define regexExpression as Ognl expression - there
was name clash without renaming ;-)
http://struts.apache.org/development/2.x/docs/version-notes-23120.html
2013/9/18 Chris :
> Hello ,
>
> Do you have any idea s
Hello ,
Do you have any idea since when ( which version ) the word expression is no
more avaliable ?
In some examples on the Web or in Books, the word used is still "expression".
Regards
Chris
--
Done, thanks for reporting!
https://cwiki.apache.org/confluence/display/WW/Form+Validation+Using+XML
2013/9/16 Chris :
> Hi Lukasz,
>
> Good example of regex in
> http://struts.apache.org/development/2.x/docs/form-validation-using-xml.html ,
> and choose between JavaScript validator or Java val
Hi, the goal that I'm trying to reach is to reduce the number of variables
and method into the Struts action to improve code readability and
maintainability.
I'm using hibernate, so I could obtain a good synergy if i can set value
coming from parameters directly into the hibernate model bean, maint
Ciao Simone,
have a look at VisitorFieldValidator [1] [2] and model driven. IMO it's
better to keep the annotations inside the action rather than the bean (you
can have different use cases for the same model).
[1]
http://struts.apache.org/release/2.3.x/docs/visitorfieldvalidator-annotation.html
OMG, this is an EPIC FAIL : )
Yes, i have saved and referenced it in WEB-INF.
Best regards,
- Original Message -
From: "Lukasz Lenart" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Tuesday, July 15, 2008 7:23 PM
Subject: Re: Validator plugin err
As I remember, there is a bug with this, out dtd to WEB-INF and add
reference to it
http://www.developerdotstar.com/community/node/472
Regards
--
Lukasz
http://www.lenart.org.pl/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
uot; <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Tuesday, July 15, 2008 3:36 PM
Subject: Re: Validator plugin error
15-jul-2008 15:06:33 org.apache.commons.digester.Digester fatalError
GRAVE: Parse Fatal Error at line -1 column -1: Premature end of file.
org.xml.sax.SAX
> 15-jul-2008 15:06:33 org.apache.commons.digester.Digester fatalError
> GRAVE: Parse Fatal Error at line -1 column -1: Premature end of file.
> org.xml.sax.SAXParseException: Premature end of file.
You should also change dtd headers for validator-rules.xml and
validations.xml to reflect new commo
--- On Tue, 7/15/08, Dani <[EMAIL PROTECTED]> wrote:
> Should I update the depencies of commons-validator 1.3.1.
> as shown in this link?
Well yes; you can't just update a library and assume that it will work without
its dependencies.
Dave
--
Lukasz Lenart escribió:
Check this
http://issues.apache.org/struts/browse/STR-2862?focusedCommentId=37312#action_37312
Maybe either you have duplicated commons-validator.jar or in wrong version?
Regards
I have updated commons-validator.jar to latest version 1.3.1 replacing
the jar file in
Check this
http://issues.apache.org/struts/browse/STR-2862?focusedCommentId=37312#action_37312
Maybe either you have duplicated commons-validator.jar or in wrong version?
Regards
--
Lukasz
http://www.lenart.org.pl/
-
To unsub
Lukasz Lenart escribió:
Hi,
Try to comment such entry for Validator plugin and check again, do you
have any logs from your container? Maybe the problem is elsewhere?
Regards
The validator-rules.xml & validations.xml are located under the correct
path /WEB-INF/, as specified in the struts
Hi,
Try to comment such entry for Validator plugin and check again, do you
have any logs from your container? Maybe the problem is elsewhere?
Regards
--
Lukasz
http://www.lenart.org.pl/
-
To unsubscribe, e-mail: [EMAIL PROTECT
Despite the redundancy, having separate validators is nice since it
allows you to customize the error message. For example, you might
want to say, "Please enter your age," "Age must be a valid number,"
and, "You must be at least 13 years old to ride this ride."
On Oct 16, 2007, at 3:44 PM,
I don't know exactly what the problem was. After spending lots of
hours in front of the computer it worked!
I think the problem had something to do with what you say or, probably
with the exception I define in the action mapping.
Anyway, thanks.
-
"Ramon Xuriguera i Albareda" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Thanks but, it doesn't work either...
> Any other ideas?
>
I have worked with an earlier version of the Struts validator and found that
the failure mode when there was a syntax error in validation.xml for a
Can you repost relevant code and config with any corrections you made?
Ramon Xuriguera i Albareda wrote:
Thanks but, it doesn't work either...
Any other ideas?
2007/6/30, Dave Newton <[EMAIL PROTECTED]>:
Subclassing ValidationActionForm means that the form
"name" attribute in validation.xml w
Thanks but, it doesn't work either...
Any other ideas?
2007/6/30, Dave Newton <[EMAIL PROTECTED]>:
Subclassing ValidationActionForm means that the form
"name" attribute in validation.xml would be the action
path, not the bean name. You want ValidationForm if
you want the validation form name to
--- Ramon Xuriguera i Albareda wrote:
> VALIDATION.XML
>
>
>
> FORMBEAN (SubjectForm.java)
> It extends ValidationActionForm
Subclassing ValidationActionForm means that the form
"name" attribute in validation.xml would be the action
path, not the bean name. You want ValidationForm if
you want
Tom Bednarz wrote:
I use a form derived from ValidatorActionForm.
If the validator fires a message and redisplays the form, I loose my
request params!
I do:
this actions opens a form with a request parameter op set to new.
inside this form I do something like:
Thanks Ted! I felt a little queezy about using "requiredstring" but
couldn't get Eclipse to reveal a list of valid atrribute values with code
assist.
On 3/23/07, Ted Husted <[EMAIL PROTECTED]> wrote:
On 3/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> what about simple type conversion?
On 3/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
what about simple type conversion? How will you ever have non-string
coming from html? Does this mean we are back to domain object with
only strings?
No, it means that we have a special validator for Strings to cover
both the notion of be
--- [EMAIL PROTECTED] wrote:
> what about simple type conversion? How will you ever
> have non-string coming from html? Does this mean we
> are back to domain object with only strings?
S2 (and others) already do simple type conversion.
You will "never" have non-strings coming from the
*browser*
what about simple type conversion? How will you ever have non-string
coming from html? Does this mean we are back to domain object with
only strings?
On 3/23/07, Dave Newton <[EMAIL PROTECTED]> wrote:
--- [EMAIL PROTECTED] wrote:
> Are you suggesting that we *ARE* back to needing
> *DUMB* string
--- [EMAIL PROTECTED] wrote:
> Are you suggesting that we *ARE* back to needing
> *DUMB* strings in our *RICH* domain models? I
> thought the tired old FormBean was a thing of the
> past!
That's backwards. You were testing an int with a
String test and it failed *because* it wasn't viewing
every
There's a different validator for numeric types.
* http://struts.apache.org/2.x/docs/required-validator.html
On 3/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Oh! It is an int.
-
To unsubscribe, e-mail: [EMAIL PROTEC
Are you suggesting that we *ARE* back to needing *DUMB* strings in our
*RICH* domain models? I thought the tired old FormBean was a thing of the
past!
On 3/23/07, Dave Newton <[EMAIL PROTECTED]> wrote:
--- [EMAIL PROTECTED] wrote:
> Oh! It is an int.
That could cause a problem :)
Probably n
--- [EMAIL PROTECTED] wrote:
> Oh! It is an int.
That could cause a problem :)
Probably not a good idea anyway, since you may want to
enforce either Zip or Zip+4 and not let people enter
"145".
d.
8:00? 8:
Oh! It is an int.
Scott
On 3/23/07, Dave Newton <[EMAIL PROTECTED]> wrote:
--- [EMAIL PROTECTED] wrote:
> What do you mean by target type?
What (Java) type is the value you are validating?
>
> On 3/23/07, Ted Husted <[EMAIL PROTECTED]> wrote:
> >
> > Is the target type a String?
> >
> > On
--- [EMAIL PROTECTED] wrote:
> What do you mean by target type?
What (Java) type is the value you are validating?
>
> On 3/23/07, Ted Husted <[EMAIL PROTECTED]> wrote:
> >
> > Is the target type a String?
> >
> > On 3/23/07, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> wrote:
> > > Actually, I remove
What do you mean by target type?
On 3/23/07, Ted Husted <[EMAIL PROTECTED]> wrote:
Is the target type a String?
On 3/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Actually, I removed the js attributes and it behaved the same.
---
Is the target type a String?
On 3/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Actually, I removed the js attributes and it behaved the same.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
Actually, I removed the js attributes and it behaved the same.
On 3/23/07, Ted Husted <[EMAIL PROTECTED]> wrote:
What happens if the custom JavaScripts are not used, but the
validation element is used?
If the JavaScript seems to be culprit, then I'd use FireBug or
something to watch the reques
What happens if the custom JavaScripts are not used, but the
validation element is used?
If the JavaScript seems to be culprit, then I'd use FireBug or
something to watch the request, to see if there is something funky
going on there. The server-side can only handle what it receives.
-Ted.
On 3
Server side.
On 3/23/07, Ted Husted <[EMAIL PROTECTED]> wrote:
Is it the server-side or client-side validation that is firing when it
should not?
If it is the client-side, and the custom scripts are based on
Prototype, there could be DOM-related issues, since Prototype rewrites
the DOM.
-Ted.
Is it the server-side or client-side validation that is firing when it
should not?
If it is the client-side, and the custom scripts are based on
Prototype, there could be DOM-related issues, since Prototype rewrites
the DOM.
-Ted.
On 3/22/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
I have
Thanks, I figured it out. I made sure this was by default bundle.
On 3/21/07, Niall Pemberton <[EMAIL PROTECTED]> wrote:
On 3/21/07, Dilip Ladhani <[EMAIL PROTECTED]> wrote:
> I have gotten the validator to work in may of my projects, but I am
> stuck on this one and was wondering if someone can
On 3/21/07, Dilip Ladhani <[EMAIL PROTECTED]> wrote:
Thanks for the reply.
However, after doing that I get the error
Unhandled exception thrown during validation: No message resources
found for bundle: messages
java.lang.NullPointerException: No message resources found for bundle: messages
On 3/21/07, Dilip Ladhani <[EMAIL PROTECTED]> wrote:
I have gotten the validator to work in may of my projects, but I am
stuck on this one and was wondering if someone can help.
I have a MessageResources.properties under WEB-INF/classes which
contains all the messages.
In my struts-config I have
Thanks for the reply.
However, after doing that I get the error
Unhandled exception thrown during validation: No message resources
found for bundle: messages
java.lang.NullPointerException: No message resources found for bundle: messages
Also, on various jsps, I would have to, I would have to
make your message resource as the defautl one, dont put any key just add the
entry
in struts-config and see.,
Thanks & Regards,
Nuwan.
- Original Message -
From: "Dilip Ladhani" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, March 21, 2007 4:48 PM
Subject: Validator question Struts 1.
On 2/28/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Thank you for your reply.
Why is it only server-side ?
Because no-one has written the equivalent functionality in JavaScript.
Validwhen uses antlr to evaluate expressions on the server side -
replicating its functionality in JavaScript
Thank you for your reply.
Why is it only server-side ?
Regards,
Selon Niall Pemberton <[EMAIL PROTECTED]>:
> No its server-side only.
>
> Niall
>
> On 2/27/07, jmpdev <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I would like to know if it is possible to call validWhen on the client
> > side?
>
No its server-side only.
Niall
On 2/27/07, jmpdev <[EMAIL PROTECTED]> wrote:
Hi,
I would like to know if it is possible to call validWhen on the client
side?
I didn't find validWhen.js is it possible to find it somewhere?
Thanks,
Regards, Jean-Marie.
--
Tom Bednarz wrote:
I have a FormBean derived from ValidatorActionForm. I define validation
rules for certain properties in validation.xml.
No I like to add some additional validations which depend on user input.
I thought, I can handle this in the validate(..) method but it gets
never called!
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Thomas,
Hehl, Thomas wrote:
> I'm still pretty new to struts and am taking over an app from a previous
> developer. I have added some validation and got the following error:
>
> ValidWhen Error for field ' additionalInfo' - line 1:18: unexpected toke
Use this
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 21, 2006 9:16 AM
To: Struts Users Mailing List
Subject: Re: Validator Framework 1.29
On 12/20/06, Jim Reynolds <[EMAIL PROTECTED]> wrote:
&
On 12/20/06, Jim Reynolds <[EMAIL PROTECTED]> wrote:
Hello,
I am having some issues with getting the messages from the validator
framework from showing. Actually, I have some old code like this:
that used to work, before upgrading
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Thomas,
Thomas Thomas wrote:
> Thank u,
> it works great :-)
No problem.
> I have :
>
>
>
> May I ask u, dear Christopher, what's the difference of it with what u have
> done :
>
> key="error.unmatched.password.confirm" />
>
I'm not s
Ok everything is fixed, I forgot to do :
ValidatorUtils.getValueAsString
I get the String literals and not the real numbers
I make a custom validator myDate
I try to give as var value the day and the month,
but when I try to get the values of the vars day and month,
I get the String literals birthDay and birthMonth
day
Thank u,
it works great :-)
I have :
May I ask u, dear Christopher, what's the difference of it with what u have
done :
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Thomas,
Thomas Thomas wrote:
> (*this* == password)
>
> But it still doesn't work
This is exactly what I have in my setup, and it works like a charm:
test
(
Instead of :
(passwordCheck == password)
I put :
(*this* == password)
But it still doesn't work
Dear Sean,
thank u for your precious support.
I added this :
test
(passwordCheck == password)
But it's not working :-(
Use the validWhen validator for the password and the passwordCheck
fields: http://struts.apache.org/1.2.x/userGuide/dev_validator.html
You'll need to add the passwordCheck field to your registerForm.
I've found these links useful when investigating commons-validator:
* commons validator exa
On 11/28/06, Thomas Thomas <[EMAIL PROTECTED]> wrote:
Hi,
since I added a constraint for the length with minlength, I have the
following errror :
28-nov.-2006 21:31:33 org.apache.struts.validator.DynaValidatorForm validate
GRAVE: org.apache.struts.util.StrutsValidator
org.apache.commons.validato
Nobody can help me ?
No-one has *Any* idea ?
U can use the nn-validation.js, have a look :
http://www.siteexperts.com/tips/functions/ts21/page10.asp
-Original Message-
From: Jim Reynolds [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 30, 2006 12:22 AM
To: user@struts.apache.org
Subject: Validator without Struts
Hello,
I have
On 11/29/06, Jim Reynolds <[EMAIL PROTECTED]> wrote:
Hello,
I have the need to do some form validations, but the site in question
is not running Struts, nor WW or any framework. :-(
It is an older site and I have been commissioned to do some validtion
within it. I was hoping that the Validator
You can try http://jakarta.apache.org/commons/validator/ which is commonly used
w/Struts 1.
- Original Message
From: Jim Reynolds <[EMAIL PROTECTED]>
To: user@struts.apache.org
Sent: Wednesday, November 29, 2006 2:21:49 PM
Subject: Validator without Struts
Hello,
I have the need to d
Yariel Ramos Moreno wrote:
How can I validate a form field to accept numbers from 1 to 99 or an underscore
(_) using the validator framework. The application is in Struts 1.1.
If you didn't have the requirement to accept underscore, intRange would
be what you were looking for. With that requi
Check this document, slide 30 by Shang Shin.
http://www.javapassion.com/j2ee/StrutsValidationFramework_speakernoted.pdf
I think it's a good explanation...Check it out. Check intRange key, how he
works with it.
For dominicans, cubans are our brothers...we share historical events!
I hope this co
Puneet Lakhina wrote:
Hi,
I have the following key value pair in ApplicationResource.properties
required = {0} is required.
I used this when I was doing only server side validation, to display a list
of error messages when some validation failed.
Now Im using the to do the same thing on clien
Laurie, absolutely, use the required validation. I do that for my
applications. Since he was specifically talking about length of an
array, there is no such validation; but as long as a valid is present,
it was submitted.
Laurie Harper wrote:
Can't you just use the 'required' validation rule?
Can't you just use the 'required' validation rule? Or possibly a
validwhen with something like *this* != null and *tihs*.length >= 1?
Admittedly I haven't tried either, though.
L.
Paul Benedict wrote:
I've always wanted this feature myself. However, no such validation
exists.. but if you writ
I've always wanted this feature myself. However, no such validation
exists.. but if you write it, you could share it back to the Struts
community.
So you'll have to add this validation yourself by override the
validate() method of your form, checking the property's length; if it is
not null t
sheetal wrote:
Thanks for the help..
Yesterday I tried and it worked...
But the problem now is that its message string is not coming...
I had made an entry for it in applicationresoUrces.properties...
BUT STILL IT'S UNABLE TO PICK IT FROM THERE..
What message string? How are you specifying it?
Gomathi wrote:
Hai,
Is the validator framework is only for dynavalidatorform?
I am using actionform using validator framework.Its not working fine how?
You need to derive your form beans from ValidatorActionForm, not just
ActionForm. DynaValidatorForm extends ValidatorForm, so that should be
Laurie Harper wrote:
sheetal wrote:
Hi All,
I had problem..
I am trying to implement client side validation using Validator
FRamework.
I have added validator-rules.xml, and validation.xml, in my web -inf
file.
And made following entry in validation.xml
sheetal wrote:
Hi All,
I had problem..
I am trying to implement client side validation using Validator
FRamework.
I have added validator-rules.xml, and validation.xml, in my web -inf file.
And made following entry in validation.xml
ups, sorry i thought you were using dinaform
sorry
El mar, 05 de 09 de 2006 a las 13:13, Jorge Martín Cuervo escribió:
> hi
>
> why you use
> com.hns.nme.frontend.apps.cmdexecution.form.SelectCommandForm instead
> java.lang.String in form-bean type?
>
> El mar, 05 de 09 de 2006 a las 10:48, sh
hi
why you use
com.hns.nme.frontend.apps.cmdexecution.form.SelectCommandForm instead
java.lang.String in form-bean type?
El mar, 05 de 09 de 2006 a las 10:48, sheetal escribió:
> Hi All,
> I had problem..
> I am trying to implement client side validation using Validator FRamework.
> I have add
Thanks a lot for all that feedback. I think it gets me a step further.
Tom
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On 8/30/06, Tom Bednarz <[EMAIL PROTECTED]> wrote:
What is the correct or preferred way to link business-objects with form
beans. Is this only possible by copying data from a business object to a
form bean or is there any 'smarter' way?
You might want to take a look at FormDef: https://formdef
Tom Bednarz wrote:
So I used
Don't specify value. Simply copy the properties from a subscriber
object (session scoped or otherwise) to a formbean (the one being used
to render the form values). There's a copyProperties method in
org.apache.commons.beanutils.BeanUtils:
http://tinyurl.c
Thanks a lot for all your input and help. It looks like I need some
basic concepts clarified. Here a very short background of the
application and what my intension is:
The object 'subscriber' is a special business object: it represents the
logged in user and contains a lot of information about
Tom Bednarz wrote:
David Durham wrote:
Tom Bednarz wrote:
I think the validator fires too early, but probably I am doing
something wrong. Maybe somebody can hp!
Basically, you need 2 actions, one to populate the form and one to
change the personal data.
Or at least two action mappings, if
On 8/30/06, Tom Bednarz <[EMAIL PROTECTED]> wrote:
The idea is, that I show a form that contains already data and the user
can edit it. When the form is submitted, the validator should check the
user input. Here is my validator configuration:
...
Now it seems, that the validator gets fired BEF
Why are you making these fields so complex? You have
Instead of the simple form:
?
Why do you need to specify all of that redundant information like value and
name when you have the property attribute? And why are you pulling values
from the session scope instead of the request data that
David Durham wrote:
Tom Bednarz wrote:
I think the validator fires too early, but probably I am doing
something wrong. Maybe somebody can hp!
Basically, you need 2 actions, one to populate the form and one to
change the personal data.
David,
This is EXACTLY what I like to AVOID! With th
Tom Bednarz wrote:
I think the validator fires too early, but probably I am doing something
wrong. Maybe somebody can hp!
Basically, you need 2 actions, one to populate the form and one to
change the personal data.
I have the following form bean defined in struts-config.xml:
type="o
Theres no way of picking up what was rendered in your view in the
validation config.
If you're "hard coding" your label values rather than putting them in
the message resources though, you can do the same in your
validation.xml - using the resource="false" attribute.
... or even the whole err
Mississippi John Hurt wrote:
Hi,
I want to do client-side validation using a custom class I can specify in
the validator.xml section. But my
question is if I use a custom class, then how the heck can Struts
generate
the custom javascript for it in the jsp if I'm using a custom java
class I
wr
From Struts 1.2.7 onwards you can change the keys used with the
"header", "footer", "prefix" and "suffix" attributes
http://struts.apache.org/1.2.9/userGuide/struts-html.html#errors
Niall
On 8/11/06, Kalra, Ashwani <[EMAIL PROTECTED]> wrote:
They are hard coded in mailto:[EMAIL PROTECTED]
Se
On 8/11/06, Kalra, Ashwani <[EMAIL PROTECTED]> wrote:
They are hard coded in
It's not a configurable property, but, if it's an issue for someone,
just plug in your own version of the errors tag.
-Ted.
-
To unsubscribe, e-mail
Don't think you really understand the issue, Simian.
On 8/11/06, Monkeyden <[EMAIL PROTECTED]> wrote:
Who cares where they're called or what their values are? Just add them to
the application resources file.
On 8/11/06, Jean-Marie Pitre <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> I would like to
Who cares where they're called or what their values are? Just add them to
the application resources file.
On 8/11/06, Jean-Marie Pitre <[EMAIL PROTECTED]> wrote:
Hi,
I would like to change the key name of errors.header, errors.footer,
errors.suffix ... but I don't see where they are called.
They are hard coded in mailto:[EMAIL PROTECTED]
Sent: Friday, August 11, 2006 2:58 PM
To: Struts Users Mailing List
Subject: Validator
Hi,
I would like to change the key name of errors.header, errors.footer,
errors.suffix ... but I don't see where they are called.
Have you got any idea ?
Tha
ilto:[EMAIL PROTECTED]
Envoyé: lundi 7 août 2006 15:37
À: Struts Users Mailing List
Objet: Re: Validator dynamic var
You can do this in Struts 1.3.x and Commons Validator 1.3.0 where the
element can come from a resource bundle.
See the "1.2 Variables in Resource Bundles" section here:
Thank you Niall,
Do you know if I can call a java class instead of a properties file ?
Jean-Marie.
-Message d'origine-
De : Niall Pemberton [mailto:[EMAIL PROTECTED]
Envoyé : lundi 7 août 2006 15:37
À : Struts Users Mailing List
Objet : Re: Validator dynamic var
You can do th
er.valueOf?
-Original Message-
From: Bart Busschots [mailto:[EMAIL PROTECTED]
Sent: Sunday, August 06, 2006 3:33 PM
To: Struts Users Mailing List
Subject: Re: Validator not getting called and I can't see why [resolved]
OK, I got all this figured out in the end.
The validator was being called
You can do this in Struts 1.3.x and Commons Validator 1.3.0 where the
element can come from a resource bundle.
See the "1.2 Variables in Resource Bundles" section here:
http://wiki.apache.org/jakarta-commons/ValidatorVersion120
Niall
On 8/7/06, Jean-Marie Pitre <[EMAIL PROTECTED]> wrote:
H
Romu wrote:
U mean a javascript error ?
No, I don't use clientside validation on my forms. It's going to the
server anyhow so I don't see the point, just an extra layer for things
to not work in.
u need to define a message.properties file too which will define the
error
messa
Good point
for example :
mentor.createStudentGroup
.groupName.label = the Student Group Name
2006/8/7, Romu <[EMAIL PROTECTED]>:
U mean a javascript error ?
u need to define a message.properties file too which will define the
error messa
2006/8/6, Bart Busschots < [EMAIL PROTECTED]>:
> OK, I go
U mean a javascript error ?
u need to define a message.properties file too which will define the error
messa
2006/8/6, Bart Busschots <[EMAIL PROTECTED]>:
OK, I got all this figured out in the end.
The validator was being called but because of problems with the page
attribute in the form th
OK, I got all this figured out in the end.
The validator was being called but because of problems with the page
attribute in the form the validator appears to have been receiving a
page value of zero and hence not validating the items on pages 1 or two
because neither 1 nor 2 are less that or
1 - 100 of 429 matches
Mail list logo