I'm not familiar with the tag; does that auto-include the script
defining the validateForm() function?
If not, I'd suggest a missing
quot; uri="/WEB-INF/struts-bean.tld" %>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
> Transitional//EN">
>
>
>
> LoginPage
>
>
>
>
>
>
> >
>
>
>
>
>
>
>
>
>
>
>
> Click here to href=
/DTD HTML 4.01
Transitional//EN">
LoginPage
>
Click here to SignUp
>
--
View this message in context:
http://struts.1045723.n5
Cool; glad you got it working.
Dave
On Mon, Jun 27, 2011 at 8:37 AM, Maithily wrote:
> Oh! yes, thanks for pointing that out. It works smoothly.
> Apologies for the silly mistake.
>
> Regards,
> Maithily.
>
> On Mon, Jun 27, 2011 at 6:03 PM, Dave Newton wrote:
>
>> From http://struts.apache.org
Oh! yes, thanks for pointing that out. It works smoothly.
Apologies for the silly mistake.
Regards,
Maithily.
On Mon, Jun 27, 2011 at 6:03 PM, Dave Newton wrote:
> From http://struts.apache.org/1.2.4/userGuide/dev_validator.html
>
> * minlength - validate input data isn't less than a specified
>From http://struts.apache.org/1.2.4/userGuide/dev_validator.html
* minlength - validate input data isn't less than a specified minimum
length. Requires a minlength variable.
minlength3
So, it's a colon there.
Dave
On Mon, Jun 27, 2011 at 8:31 AM, Maithily
Yeah, it renders as you have said.
I have declared the var as per the struts validator documents.
minlength
6
I also tried this configuring it like this -
Oh, you're saying that the error message *renders* as "... less than
${var.minlength} characters"?
What happens when you declare the var as ${var:minlength} as in the docs?
Dave
On Mon, Jun 27, 2011 at 8:17 AM, Maithily wrote:
> Thanks for the reply Dave.
>
> The default error message configur
Thanks for the reply Dave.
The default error message configured as follows
errors.minlength={0} can not be less than {1} characters.
Regards,
Maithily
On Mon, Jun 27, 2011 at 4:30 PM, Dave Newton wrote:
> {1} like the default message.
>
> Dave
> On Jun 27, 2011 3:14 AM, "Maithily" wrote:
>
{1} like the default message.
Dave
On Jun 27, 2011 3:14 AM, "Maithily" wrote:
> Hi,
>
> I am new to this mailing list and am facing a problem using the
"minlength"
> field validation provided by the Struts Validation Framework.
> Struts version - 1.2.4
> Application Server - Apache Tomcat (5.5)
Hi,
I am new to this mailing list and am facing a problem using the "minlength"
field validation provided by the Struts Validation Framework.
Struts version - 1.2.4
Application Server - Apache Tomcat (5.5)
I have configured the following in my validation.xml file -
ution for this.
Thanx in advance... Jigar
--
View this message in context:
http://www.nabble.com/URGENT-%3A--Unable-to-retain-request-Attributes-after-the-validator-framework-thraws-an-Error...-tp23011346p23011346.html
Sent from the Struts - User mailing list archive
--- On Wed, 10/15/08, Néstor Boscán wrote:
> But the prepare method will be called if a validation error
> happens or not. If a validation error happens I want to load the combo
> data, but if not I don't need to load that data.
You can also use prepareXxx, where Xxx is the method name.
But if yo
gt; 2008/10/14 Néstor Boscán <[EMAIL PROTECTED]>:
> > I'm using the validator frame in Struts 2.0.11.2. When the validator
> > framework fails I need to call the input method to load some combo data.
> But
> > the validator framework automatically calls the input res
2008/10/14 Néstor Boscán <[EMAIL PROTECTED]>:
> I'm using the validator frame in Struts 2.0.11.2. When the validator
> framework fails I need to call the input method to load some combo data. But
> the validator framework automatically calls the input result. If I chain
>
Hi
I'm using the validator frame in Struts 2.0.11.2. When the validator
framework fails I need to call the input method to load some combo data. But
the validator framework automatically calls the input result. If I chain
that input result with the input method I loose the fieldError
core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>
na.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
> at
> org.apache.coyote.http11.Http
ariables had the correct value submitted through the form.
Moreover, I'm not sure that
Resources.getActionMessage(request, va, field)
method in my custom validator class is correct. This method is deprecated
and I don't know how to replace it.
I can't understand where is the pro
t; cacodemon79 wrote:
>>>> No suggestions? :(
>>>>
>>>> I also tried to use
>>>> document.registrazioneUtenteForm.submit()")
>>>> instead of
>>>> eval("document."+nomeForm+".submit()")
>>>> but the r
ied to use
document.registrazioneUtenteForm.submit()")
instead of
eval("document."+nomeForm+".submit()")
but the result is the same. The form is submitted but I can't see any
javascript alerts.
I can't understand where is the problem.
I hope you can help me.
Thanks.
cacod
Hi,
2008/6/23 cacodemon79 <[EMAIL PROTECTED]>:
>
> Bingo!
> Now it works!
> Thanks a lot.
> However i can't understand why the onsubmit handler is not triggered by the
> submit() function!
>
Maybe it depends on Web Browser, did you try with others?
Regards
--
Lukasz
http://www.lenart.org.pl/
form is submitted but I can't see any
>> javascript alerts.
>>
>> I can't understand where is the problem.
>>
>> I hope you can help me.
>>
>> Thanks.
>>
>>
>>
>> cacodemon79 wrote:
>>> Hi, I'm using Str
m is submitted but I can't see any
javascript alerts.
I can't understand where is the problem.
I hope you can help me.
Thanks.
cacodemon79 wrote:
Hi, I'm using Struts Validator Framework (Struts 1.3).
Server-side validation works well.
The problem is in client-side val
> A beta version of firebug does work with 3.0 :
> http://getfirebug.com/releases/index.html
Thanks!
--
Lukasz
http://www.lenart.org.pl/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTEC
Lukasz Lenart wrote:
Maybe you should install Firebug for Firefox (not working with 3.0)
and debug the JavaScript?
A beta version of firebug does work with 3.0 :
http://getfirebug.com/releases/index.html
-Dale
-
To unsubscr
Hi,
Maybe you should install Firebug for Firefox (not working with 3.0)
and debug the JavaScript?
Regards
--
Lukasz
http://www.lenart.org.pl/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
m.
I hope you can help me.
Thanks.
cacodemon79 wrote:
>
> Hi, I'm using Struts Validator Framework (Struts 1.3).
> Server-side validation works well.
> The problem is in client-side validation.
>
> The form name I have to validate is: RegistrazioneUt
Hi,
Struts2 use XWork Validation Framework, so you can use it
http://www.opensymphony.com/xwork/wikidocs/Validation%20Framework.html
Regards
--
Lukasz
http://www.lenart.org.pl/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For a
Hi, I'm using Struts Validator Framework (Struts 1.3).
Server-side validation works well.
The problem is in client-side validation.
The form name I have to validate is: RegistrazioneUtenteForm.
In my jsp page I have 2 buttons:
1)
2)
and the following form declaration:
Moreover I have en
I would like to use the Struts2 validation classes "outside" of Struts2.
What I would like to do specifically is use the UrlValidator to test a
string to determine if it is a URL and if it is create the link and if
not just display the value. I would like to use the validator for this
since we us
--Original Message-
From: Zhang, Larry (L.) [mailto:[EMAIL PROTECTED]
Sent: Thu 5/15/2008 6:14 PM
To: Struts Users Mailing List
Cc:
Subject: Struts validator framework
Say if I have two text fields, one label is Please
Say if I have two text fields, one label is Please enter name:, and the
other label is Please enter SSN:. In struts validator framework, if I
need to validate these two fields using required validator, is there any
way to relate the field label to the message? Or does struts validator
support
Hi,
I want to access value of property "a" while giving an error message for
value of property "b". e.g. my error message should be " For value ,
value is not in the range ".
where both and are different properties,
Is there any way that I can do that ?
Thanks,
Kavita
--- Adam Hardy <[EMAIL PROTECTED]> wrote:
> - is there a way to have all the validation in one config file rather
> than having one config file per Action class?
AFAICT the validation files are looked up the same way the resource files
are; for example I just added a superclass to one of my actio
Hi Folks,
just slogging my way up the learning curve of XWorks Validation with
that 'here we go again' feeling, and it occurred to me that I might be
able to plug in the old commons-validator more quickly.
XWorks's Struts2 validation framework is probably not that bad and of
course commons-v
OH..
you can referrence this web page to fix your problem:
http://www.junlu.com/msg/200341.html
_
With Windows Live Hotmail, you can personalize your inbox with your favorite
color.
www.windowslive-hotmail.com/learnmore/personalize
Guess you used the wrong version of the "commons-validator.jar".
Luck.
Fitzwilliam
--
北半球的狗几月份掉毛?
Tell me those things:
1. struts' version u r using;
2. DOCTYPE of both validation.xml and validation-rules.xml
--
北半球的狗几月份掉毛?
Sir I have removed the old one and put the new one
-Original Message-
From: Oguz Kologlu [mailto:[EMAIL PROTECTED]
Sent: Friday, June 01, 2007 2:00 PM
To: Struts Users Mailing List
Subject: Re: Exception while using validator framework
also make sure you delete the old one.
Oz
On 01
iginal Message-
From: Fei Fei [mailto:[EMAIL PROTECTED]
Sent: Friday, June 01, 2007 12:34 PM
To: Struts Users Mailing List
Subject: RE: Exception while using validator framework
update your commons-validator.jar file,it is an old version,
- A Fei -> Subject: Exception while using validator
: Struts Users Mailing List
Subject: RE: Exception while using validator framework
update your commons-validator.jar file,it is an old version,
- A Fei -> Subject: Exception while using validator framework> Date:
Fri, 1 Jun 2007 12:22:45 +0530> From: [EMAIL PROTECTED]> To:
user@strut
update your commons-validator.jar file,it is an old version,
- A Fei -> Subject: Exception while using validator framework> Date: Fri, 1 Jun
2007 12:22:45 +0530> From: [EMAIL PROTECTED]> To: user@struts.apache.org> > >
Hi all,> > > > I have created a sample s
validator framework
>
> 19:57:00,515 ERROR [ActionServlet] Unable to initialize Struts
> ActionServlet due to an unexpected exception or error thrown, so marking
> the servlet as unavailable. Most likely, this is due to an incorrect or
> missing library dependency.
>
> java.l
19:57:00,515 ERROR [ActionServlet] Unable to initialize Struts
ActionServlet due to an unexpected exception or error thrown, so marking
the servlet as unavailable. Most likely, this is due to an incorrect or
missing library dependency.
java.lang.NoSuchMethodError:
org.apache.commons.validator.V
Hi all,
I have created a sample struts application
Im trying to make use of the validator framework
The steps which i have carried out are
1 .I have included validation.xml and validation-rules.xml in WEB-INF
2 .then in struts-config.xml i have included
the required
--- "Kaushal, Anubhav" wrote:
> The user input is taken and then corresponding
> record is fetched from the database. Depending on
> the query result, I need to display appropriate
> message to the user. How can I achieve this?
It's not clear to me what this h
I am using Struts Validator framework and DynaActionForm for performing
form data validations. The user input is taken and then corresponding
record is fetched from the database. Depending on the query result, I
need to display appropriate message to the user. How can I achieve this?
It will be
--- "Kaushal, Anubhav" wrote:
> The user input is taken and then corresponding
> record is fetched from the database. Depending on
> the query result, I need to display appropriate
> message to the user. How can I achieve this?
It's not clear to me what this h
Hi,
I am using Struts Validator framework and DynaActionForm for performing
form data validations. The user input is taken and then corresponding
record is fetched from the database. Depending on the query result, I
need to display appropriate message to the user. How can I achieve this
?
It
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,
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 to 1.29. I am getting this error:
"ccording to T
-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
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 :-(
TED]
Sent: Thursday, December 07, 2006 3:05 PM
To: Struts Users Mailing List
Subject: Validator FrameWork
Hi,
I'm using Validator Framework with Struts,
Here I want to validate a registration form.
I want to add a field property passwordCheck, (the user needs to enters
his
password twice : the
Hi,
I'm using Validator Framework with Struts,
Here I want to validate a registration form.
I want to add a field property passwordCheck, (the user needs to enters his
password twice : the first password will be in property password, the second
in passwordCheck)
I want to check if val
, Deep Blue <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm using tiles component in my .jsp page (eg. main.jsp). It is a poll
> component, which user can submit the vote.
> Commons validator framework is used to validate the poll submission.
> When the validation faile
On 12/5/06, Deep Blue <[EMAIL PROTECTED]> wrote:
Hi,
I'm using tiles component in my .jsp page (eg. main.jsp). It is a poll
component, which user can submit the vote.
Commons validator framework is used to validate the poll submission.
When the validation failed on the tiles com
Hi,
I'm using tiles component in my .jsp page (eg. main.jsp). It is a poll
component, which user can submit the vote.
Commons validator framework is used to validate the poll submission.
When the validation failed on the tiles component, the tiles component's jsp
(e.g. poll.jsp)
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 ?
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.validator.ValidatorException:
org.apache.struts.util.StrutsVali
. The problem comes when i am trying to use
Struts client side validator framework along with the combination of
tiles +
JSF. In the validator framework - validation.xml file will require a
form
name and then all the fields and their respective validations.
Will this mean that if there are 40 diff
ng to use
Struts client side validator framework along with the combination of tiles +
JSF. In the validator framework - validation.xml file will require a form
name and then all the fields and their respective validations.
Will this mean that if there are 40 different forms that use the same layout
Madhav Bhargava ha scritto:
Since i am using struts tiles there is always going to be one form.
How can
i then use these 2 together?
Wait a moment, what's the connection between Tiles and the use of only
one form? That's not true.
Probably you wanted to say that you have one form and the fiel
Hi All,
I am using struts tiles for laying out all the pages. I am wondering how i
can use struts client validator framework with struts tiles.
The validation.xml file requires form name and then within the form tag we
define the individual fields along with the respective validations.
Since i
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
this could help you.
On 10/20/06, Yariel Ramos Moreno <[EMAIL PROTECTED]> wrote:
Hi,
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.
Best Regards.
_
Hi,
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.
Best Regards.
__
XIII Convención Científica de Ingeniería y Arquitectura
28/noviembre al 1/diciembre
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
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 client side also.
But my pro
the requiredIf validation with a hidden field to check the
pressed button (ask for the pressed button and if the value is 1 (Update) then
validate, else (value 2 for Restore) don't do anything). If the value in the
field is not an integer, the validator framework triggers an exception no
m
a hidden field to check the
pressed button (ask for the pressed button and if the value is 1 (Update) then
validate, else (value 2 for Restore) don't do anything). If the value in the
field is not an integer, the validator framework triggers an exception no
matter which button were pr
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 co
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
ect i can validate with validator framework.
The second type is an htm:select wich input is a list of Enumerations
---
With this second html:select, i can not validate.
The field in the ValidatorForm is private String proceso;
Thanks
On 9/25/06, Wendy Smoak <[EMAIL PROTECTED
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
re
t; wrote:
>
> Hi
>
> I need to validate an html:select with validator framework
>
> This is the code that i have
>
>
>
>
> ---
>
> "nombre">
>
>
>
> I need have a default value that is " ---" , but i need validate that
thi
---
(*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
>
>
>
>
> ---
>
> "nombre">
>
>
>
> 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.
---
(*Chris*)
On 9/25/06, Heidy Gutiérrez Guzmán <[EMAIL PROTECTED]> wrote:
Hi
I need to validate an html:select with validator framework
On 9/25/06, Heidy Gutiérrez Guzmán <[EMAIL PROTECTED]> wrote:
I need to validate an html:select with validator framework
---
I tried to use the required validation, but that does'nt work, i think
because the html:select have the "---" default value
More likely it
Hi
I need to validate an html:select with validator framework
This is the code that i have
---
I need have a default value that is " ---" , but i need validate that this
value does'nt selected.
The code in the Validator form is
private Long categoria;
I tried to u
___
From: Heidy 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 "
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 w
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
Hai,
Is the validator framework is only for dynavalidatorform?
I am using actionform using validator framework.Its not working fine how?
Kindly regards
Gomes
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
9 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 added validator-rules.xml, and validation.xml, in my web -inf file
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.
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
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.
L
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 tag to your CustomerDetails JSP, I don't
see it there.
--
Wendy
---
Hello everybody,
I'm new to Java. I'm working on Struts now. I got this application from
one struts PDF. I've one jsp for customer details as follows:
CustomerDetails.jsp:
<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib uri="/WEB-INF/struts-html.tl
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 s
1 - 100 of 235 matches
Mail list logo