-INF\validator_1_1_3.dtd (The system
cannot find the path specified)
As you can see, the app always seem to lookup the files in my WSAD
installation folders.
I've tried the following combinations of DTD references in my
validator-rule.xml and validation.xml file.
1.validator_1_1.dtd
2
Hi
Do exists any way to know when validator framework turn on?
I think i could ask by a var in the session or something like that.
Thanks for any help you could give me
I have a multiple html:select and i need to validate it with validator
framework.
The attribute in the ActionForm is an array of strings.
private String[] subtemas= new String[]{}
The validation that i'm using is required.This validation works with others
form fields
This is the code
Hi
I need to validate an html:select with validator framework
This is the code that i have
html:select property=categoria styleClass=editGrande
html:option value=null---/html:option
html:options collection=categoriasDescarte property=id labelProperty=
nombre/html:options
/html:select
I
According to your code, the default value is the String null, not ---.
You might want to try setting that to an empty value, e.g.
html:option value=---/html:option
(*Chris*)
On 9/25/06, Heidy Gutiérrez Guzmán [EMAIL PROTECTED] wrote:
Hi
I need to validate an html:select with validator
, e.g.
html:option value=---/html:option
(*Chris*)
On 9/25/06, Heidy Gutiérrez Guzmán [EMAIL PROTECTED] wrote:
Hi
I need to validate an html:select with validator framework
This is the code that i have
html:select property=categoria styleClass=editGrande
html:option value=null
You said your form property was of type 'Long'. By default, a null input
value will be turned into 0, so the required validator rule will think
the property has a value.
You should generally use String-typed form bean properties, but if you
need to keep it as Long, you'll want to configure
On 9/25/06, Laurie Harper [EMAIL PROTECTED] wrote:
You said your form property was of type 'Long'. By default, a null input
value will be turned into 0, so the required validator rule will think
the property has a value.
Good catch, Laurie! I completely missed the type... probably didn't
=categoriasDescarte property=id labelProperty=
nombre/html:options
/html:select
The field in the ValidatorForm is: private String categoria
With this type of html:select i can validate with validator framework.
The second type is an htm:select wich input is a list of Enumerations
html:select property
struts validator validate that at least one checkbox in a set is
checked? I guess somehow it has to validate that a String[] array
property
of the form has size of 1 or more, but I dont know how.
-
To unsubscribe, e-mail
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 then add your message to the existing error messages.
Paul
Mississippi John Hurt wrote:
Can struts validator validate that at least one
Can struts validator validate that at least one checkbox in a set is
checked? I guess somehow it has to validate that a String[] array property
of the form has size of 1 or more, but I dont know how.
then add your message to the existing error messages.
Paul
Mississippi John Hurt wrote:
Can struts validator validate that at least one checkbox in a set is
checked? I guess somehow it has to validate that a String[] array property
of the form has size of 1 or more, but I dont know how
think this is telling me it can't find any
validation information for my form (formRegister)-which I assume means
that the name specified in my form tag is not what validator expects
to see for form within a module. I've tried a.formRegister in my
form tag and that doesn't seem to work either.
I
it can't find any
validation information for my form (formRegister)-which I assume means
that the name specified in my form tag is not what validator expects
to see for form within a module. I've tried a.formRegister in my
form tag and that doesn't seem to work either.
I currently have a single
Hi
I need to validate a form with fields wich data type is int and float
The validation that i use is required, but that doesn't work.
The fields are initilialized with default values (o for int types) and
(0.0for float types).
Whit string data types, validator works fine.
If somebody would
Gutiérrez Guzmán [mailto:[EMAIL PROTECTED]
Sent: Wed 13/09/2006 11:13 PM
To: user@struts.apache.org
Subject: Problems with validator framework
Hi
I need to validate a form with fields wich data type is int and float
The validation that i use is required, but that doesn't work.
The fields
Hai,
Is the validator framework is only for dynavalidatorform?
I am using actionform using validator framework.Its not working fine how?
Kindly regards
Gomes
Have a Drop down and an input field.
When user selects Type 1 from drop down only then the input field is
required. otherwise it's not a required field.
Looking at the validator guide in struts maybe I have to create a new
validator rule which should check if drop down value Type 1
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
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
fea jabi wrote:
Have a Drop down and an input field.
When user selects Type 1 from drop down only then the input field is
required. otherwise it's not a required field.
Looking at the validator guide in struts maybe I have to create a new
validator rule which should check if drop down value
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
formset
form name=runCommandForm
field property=commandId
escribió:
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
formset
form name=runCommandForm
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
formset
form name=runCommandForm
field
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
formset
form name
I think the validator fires too early, but probably I am doing something
wrong. Maybe somebody can hp!
I have the following form bean defined in struts-config.xml:
form-bean name=changePersonalDataForm
type=org.apache.struts.validator.DynaValidatorActionForm
form-property name
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:
form
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 a
request that has its own values.
Regards,
David
-Original Message-
From: Tom Bednarz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 30, 2006 12:34 PM
To: Struts Users Mailing List
Subject: validator and DynaValidatorActionForm
I think the validator fires too early, but probably I am
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
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
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
Tom Bednarz wrote:
So I used
html:text value=${sessionScope.subscriber.firstname}
property=firstname name=firstname maxlength=64
size=32/
Don't specify value. Simply copy the properties from a subscriber
object (session scoped or otherwise) to a formbean (the one being used
to
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:
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]
path=/Success.jsp/
forward name=failure path=/Failure.jsp/
/action
/action-mappings
controller processorClass=org.apache.struts.action.RequestProcessor/
message-resources parameter=App1Messages/
!-- Validator Configuration --
plug-in className
On 8/29/06, Lakshmi Saritha [EMAIL PROTECTED] wrote:
Please clear me why the message is not coming from properties file.
Is the error in properties file or validator-rules.xml or some other.
Try adding an html:errors / tag to your CustomerDetails JSP, I don't
see it there.
--
Wendy
In the jsp code u givenonsubmit=return validateCustomerForm(this); but
in validator-user.xml the form name is custForm, so replace that with
onsubmit=return validateCustForm(this);
Thanks,
Srinivas
Hi,
I'm deploying a struts application with a weblogic server.. It seems to work
fine, but I've got problems with validator and html:javascript tag.
That tag does not work, maybe because a jar file is missing.. but I don't
know which one.
I've developped my app with Tomcat, and it works well
thanks for the reply.
I am not yet used to this mailing list, sorry for that, I probably could
have continued this
question in the same thread - but not knowing how to do that.
Niall you are probably right, that I should upgrade.
Using Exadel and it's support for Struts, it only says struts 1.2
Hello!
trying to get the validator framework in struts to work from within
eclipse/exadel, using struts 1.2.
following an example in the book 'professional jakarta struts' from WROX ,
that is chapter 12, but always getting errors like the following. The
example is a simple form, submitting
did you configure your app and validation framework properly? can you paste
full stack of error?
On 8/25/06, Ingimar Erlingsson [EMAIL PROTECTED] wrote:
Hello!
trying to get the validator framework in struts to work from within
eclipse/exadel, using struts 1.2.
following an example
Usually this error occurs when people upgrade to a later version of
Struts, but forget to upgrade the validator-rules.xml to the one
shipped with the new Struts version.
http://wiki.apache.org/struts/StrutsUpgrade
Niall
On 8/25/06, Ingimar Erlingsson [EMAIL PROTECTED] wrote:
Hello!
trying
I think your Configuration Struts+Validator may be giving problem.
-Original Message-
From: Li [mailto:[EMAIL PROTECTED]
Sent: Friday, August 25, 2006 1:02 PM
To: Struts Users Mailing List
Subject: Re: Struts 1.2 and the Validator Framework, how does this work
?
did you configure your
Hi,
I am using Validator 1.3, I would like to know if I can pass argument
value issued from html element?
I explain me:
I have an html form :
...
font id=labeluser class=testUser/font
html:text property=userid/
...
My validation looks like this:
form name=Identification
field property
resource=false/
... or even the whole error message.
Niall
On 8/22/06, Jean-Marie Pitre [EMAIL PROTECTED] wrote:
Hi,
I am using Validator 1.3, I would like to know if I can pass argument
value issued from html element?
I explain me:
I have an html form :
...
font id=labeluser class=testUser/font
I think you need to have at least Struts v1.2.8 unless you manually upgraded
the Commons Validator jar up to version 1.2.0. If I understand correctly,
validator versions before 1.2.0 (Struts 1.2.8) don't actually make use of
the bundle attribute in your validator xml files.
So, what version
David Friedman wrote:
I think you need to have at least Struts v1.2.8 unless you manually upgraded
the Commons Validator jar up to version 1.2.0. If I understand correctly,
validator versions before 1.2.0 (Struts 1.2.8) don't actually make use of
the bundle attribute in your validator xml
David Friedman wrote:
I think you need to have at least Struts v1.2.8 unless you manually upgraded
the Commons Validator jar up to version 1.2.0. If I understand correctly,
validator versions before 1.2.0 (Struts 1.2.8) don't actually make use of
the bundle attribute in your validator xml
Right, but the invoked Resources.getActionMessage() has calls inside it for
the bundle in the current trunk:
http://svn.apache.org/viewvc/struts/struts1/trunk/core/src/main/java/org/apa
che/struts/validator/Resources.java?view=markup
It looks like it hasn't changed from the 1.2.X branch
David Friedman wrote:
Right, but the invoked Resources.getActionMessage() has calls inside it for
the bundle in the current trunk:
http://svn.apache.org/viewvc/struts/struts1/trunk/core/src/main/java/org/apa
che/struts/validator/Resources.java?view=markup
It looks like it hasn't changed from
David Friedman wrote:
Right, but the invoked Resources.getActionMessage() has calls inside it for
the bundle in the current trunk:
http://svn.apache.org/viewvc/struts/struts1/trunk/core/src/main/java/org/apa
che/struts/validator/Resources.java?view=markup
It looks like it hasn't changed from
using a custom java
class I
wrote that exists only on the server? Not possible right?
So if that's the case, if you do leave some custom classname validator
class
in your validation.xml, then will that validation simply be ignored?
Thanks for help with these 2 questions.
If you look
On 8/16/06, Scott Van Wart [EMAIL PROTECTED] wrote:
I tried the following:
field property=name depends=maxlength
msg name=maxlength key=error.name.overflow /
arg name=maxlength bundle=constraints key=name.length /
/field
Now I figured that this would cause the maxlength validator
wrote that exists only on the server? Not possible right?
So if that's the case, if you do leave some custom classname validator class
in your validation.xml, then will that validation simply be ignored?
Thanks for help with these 2 questions.
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 change
On 8/11/06, Kalra, Ashwani [EMAIL PROTECTED] wrote:
They are hard coded in html:errors tag... , you cannot change them.
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.
change them. If
these keys are not present in resource bundle, it will be simply
ignored.
/Ashwani
-Original Message-
From: Jean-Marie Pitre [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
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 ?
Thanks,
Jean-Marie.
---
Email Disclaimer
http://www.cofidis.be/emaildisclaimer.php
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 ?
Thanks,
Jean-Marie.
---
Email Disclaimer
http://www.cofidis.be/emaildisclaimer.php
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.
Hi,
Is it possible to set dynamic variable value in validation.xml file ?
My application is in several language and I would like avoid to define
several formset definition according to each language to just change
datepatternstrict value.
Any idea ?
Thanks,
Regards Jean-Marie.
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
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 equal to zero
point, post edited.
Bart.
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 the validator appears to have been receiving a
page value of zero and hence not validating
You can do this in Struts 1.3.x and Commons Validator 1.3.0 where the
var 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
I had a similar problem here. I used formdef to define the page attribute and
didn't specify the type. When the cast was made inside of validator, it was
unable to cast the value to an Integer. The field was a string containing the
page number. Couldn't it use Integer.valueOf
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
:
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 this in Struts 1.3
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
: Bart Busschots [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 03, 2006 6:10 PM
To: Struts Users Mailing List
Subject: Validator not getting called and I can't see why
I'm either missing something stupid (which is always possible) or I've
managed to break the validator. I have an app that uses
Thanks, Eric.
From: Givler, Eric [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
To: Struts Users Mailing List user@struts.apache.org
Subject: RE: validate integer with a comma thousands seperator using
Validator
Date: Thu, 3 Aug 2006 11:45:28 -0400
You could
: Messages and Validator
There's no reason a database-backed message bundle can't load all its
messages in one go and cache them. That's all the standard property
file-backed implementation does.
To provide an alternate message bundle implementation, you just need to
configure a custom factory
recipient.
Sender does not necessarily endorse content contained within this
transmission.
Hi,
I'am using validator to validate data on client side and server side.
It works fine, but when I validate on server side when there are errors
detected I go back to the html but without user data
: Friday, August 04, 2006 10:41 AM
To: Struts Users Mailing List
Subject: Re: Validator not getting called and I can't see why
Hi Eric,
Thanks for the reply but I'm using a DynaValidatorForm so I don't have a
class to override things in. I would assume that DynaValidatorForm
validates correctly
Try turning on logging in debug mode, should give you more info about
what its doing.
Niall
On 8/3/06, Bart Busschots [EMAIL PROTECTED] wrote:
I'm either missing something stupid (which is always possible) or I've
managed to break the validator. I have an app that uses validator all
over
Hi Niall,
I don't seem to be able to get log output form the validator. Maybe I'm
doing something wrong?
This is my commons-logging.properties file:
org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
org.apache.commons.logging.simplelog.defaultlog=debug
On 8/5/06, Bart Busschots [EMAIL PROTECTED] wrote:
Hi Niall,
I don't seem to be able to get log output form the validator. Maybe I'm
doing something wrong?
This is my commons-logging.properties file:
org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
().getName()) to see what the actual class is - it could
be that struts thinks you only have a DynaActionForm instead of a
DynaValidatorForm.
Cheers,
Matt
On 8/4/06, Bart Busschots [EMAIL PROTECTED] wrote:
Hi Niall,
I don't seem to be able to get log output form the validator. Maybe I'm
doing something
a custom database-backed ressource bundle
with cache and it works well.
Regards
-Message d'origine-
De: news [mailto:[EMAIL PROTECTED] De la part de Laurie Harper
Envoyé: mercredi 2 août 2006 23:59
À: user@struts.apache.org
Objet: Re: Messages and Validator
There's no reason a database
can someone help me with this please?
From: fea jabi [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
To: user@struts.apache.org
Subject: validate integer with a comma thousands seperator using Validator
Date: Wed, 02 Aug 2006 10:09:19 -0400
Using struts validator
IIOC, the only way you can do this with the stock validator is to use mask
rather than date as the validator. Then, you can use a regex to dictate
your mask. I'll warn you though, if you use a regular expression it's going
to be VERY long because it will also need to validate that the date
You could create another validator, and inside that perform a stripping of
non-numeric characters (stripCommas), then
execute code similar to the existing long range validator like this:
/**
* Determines if a formatted numeric value is between a range as defined by
* the user
Adam Gordon wrote:
IIOC, the only way you can do this with the stock validator is to use mask
rather than date as the validator. Then, you can use a regex to dictate
your mask. I'll warn you though, if you use a regular expression it's going
to be VERY long because it will also need
validator is to use
mask
rather than date as the validator. Then, you can use a regex to
dictate
your mask. I'll warn you though, if you use a regular expression it's
going
to be VERY long because it will also need to validate that the date
entered
is valid. Additionally, the stock date validator
almost a week to track down what
was going on between the validator and his code.
-adam
Scott Van Wart wrote:
Adam Gordon wrote:
IIOC, the only way you can do this with the stock validator is to use
mask
rather than date as the validator. Then, you can use a regex to
dictate
your mask. I'll
and it took me almost a week to track down
what was going on between the validator and his code.
Yeah, essentially I'm covering all the bases (null pointers, index out
of bounds, etc.) so no RuntimeExceptions can be thrown either. If
anything doesn't look right to the translation method
I'm either missing something stupid (which is always possible) or I've
managed to break the validator. I have an app that uses validator all
over the place and it's working fine in all my other actions but for
this one action it is simply not getting called.
I can't see any difference between
either missing something stupid (which is always possible) or I've
managed to break the validator. I have an app that uses validator all
over the place and it's working fine in all my other actions but for
this one action it is simply not getting called.
I can't see any difference between this action
Hello,
I am using Validator framework with a Struts application.
I would like to know if it is possible to use message provided by a
database (or java class) rather than a propertie file ?
Thank you,
Jean-Marie.
---
Email Disclaimer
http://www.cofidis.be/emaildisclaimer.php
Using struts validator.
have to validate the user entered value.
The value entered should be a positive integer with a comma thousands
seperator. the number need not be in thousands.
I have as below to check for positive integer without comma seperator. but
not sure how to validate
interesting question , but u will suffer low performance i think ( one
database access for each message ? ) .
i think if it's in a property file it's for simulate a static class .
2006/8/2, Jean-Marie Pitre [EMAIL PROTECTED]:
Hello,
I am using Validator framework with a Struts application
I have a requirement in my project that I be able to accept two
different date masks. One with slashes (thus, 10 characters) and one
without (8 digits). Is there any way to do this with the stock date
validator, or do I need to roll my own wrapper?
Thanks,
Scott
,
I am using Validator framework with a Struts application.
I would like to know if it is possible to use message provided by a
database (or java class) rather than a propertie file ?
Thank you,
Jean-Marie.
---
Email Disclaimer
http://www.cofidis.be/emaildisclaimer.php
Hi,
Iam trying to validate a simple form which has a name, password email
field. I have validated that name field(html:text) should contain only
characters, password field(html:text) contains only numbers email
field(html:text) should contain proper email id.
When i enter only numbers
on the ValidatorForm. Since server-side validation has to be
done anyway, it's not like this detracts from the functionality.
-Adam
Jeremy Jardin wrote:
-Adam,
first, thanks for all those explications. but I've still a problem with
my
validator using 'validwhen'.
I've seen first, that I don't
-Adam,
first, thanks for all those explications. but I've still a problem with my
validator using 'validwhen'.
I've seen first, that I don't have any errors.validwhen = mymessage line
in my messageResource file ?
I guess I need to add it and I did it.
Otherwise, I've now clearly understood (I
rather than not display fields.. ??
thx
On 7/25/06, Adam Gordon [EMAIL PROTECTED] wrote:
Jeremy-
Ok, sanity-check time. Make sure your field names are all spelled
correctly. Also, are any errors being output to the form? I had errors
displaying and it turned out that the validator
names are all spelled
correctly. Also, are any errors being output to the form? I had
errors
displaying and it turned out that the validator was doing exactly what
I
was asking it to do and the problem was that I just didn't understand
the validwhen validation rule.
I've found
601 - 700 of 1759 matches
Mail list logo