I'm not familiar with the tag; does that auto-include the script
defining the validateForm() function?
If not, I'd suggest a missing
What happens? What do you expect to happen? What's your validation config?
We need something beyond "it doesn't work".
Dave
On Sep 2, 2011 3:47 AM, "RajasekharReddy" wrote:
> I am trying to implement Client-Side Validations using struts 1.3
>
> But server Side validations are working properly, b
No-reply? :(
However, I solved. Now all works well.
**
SERVER-SIDE
**
To avoid the deprecated method
Resources.getActionMessage(HttpServletRequest request, ValidatorAction va,
Field field)
I used
Resources.getActionMessage(Validator v, HttpServletRequest request,
ValidatorAction
Now, server-side validation works!
I changed ActionErrors class with ActionMessages class into my java
validation method and into "validator-rules.xml".
The only problem is that
Resources.getActionMessage(request, va, field)
method in my custom validator class is deprecated and I don't know how to
Thank you very much.
Laurie Harper wrote:
>
> I did what I should have done in the first place and looked it up:
> Form.submit() is specified to *not* call the onsubmit handler, so this
> is the correct behaviour (and should be consistent across all browsers).
>
> When in doubt, check the do
I did what I should have done in the first place and looked it up:
Form.submit() is specified to *not* call the onsubmit handler, so this
is the correct behaviour (and should be consistent across all browsers).
When in doubt, check the documentation :-)
L.
cacodemon79 wrote:
Bingo!
Now it wo
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/
Bingo!
Now it works!
Thanks a lot.
However i can't understand why the onsubmit handler is not triggered by the
submit() function!
Laurie Harper wrote:
>
> Did you confirm whether calling the form's submit() method triggers its
> onsubmit handler? It may be that calling submit() bypasses it, in
Did you confirm whether calling the form's submit() method triggers its
onsubmit handler? It may be that calling submit() bypasses it, in which
case an explicit guard in your submit function might do the trick:
function submitRegistrazioneUtenteForm(nomeForm){
var form = ...;
if (validateRe
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
No suggestions? :(
I also tried 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.
You define the field label using an argument, i.e.
So the validator is using the field's label to fill in the message. The
default message for errors.required is:
errors.required={0} is required.
So, it will replace {0} with the prompt.username entry that also appears as a
resou
om: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Friday, February 01, 2008 6:29 PM
To: Struts Users Mailing List
Subject: RE: Struts validator
--- "Zhang, Larry (L.)" <[EMAIL PROTECTED]> wrote:
> No, I am using struts 1.1,
Oh, wow.
Does validwhen[1] not exist in S1.1? You can alway
--- "Zhang, Larry (L.)" <[EMAIL PROTECTED]> wrote:
> No, I am using struts 1.1,
Oh, wow.
Does validwhen[1] not exist in S1.1? You can always create a custom validator
as well if you find your validation stretches what's easy to do with the
existing validation configuration possibilities. You may
Struts valdiator developers, Doesn't struts support this requirment?
-Original Message-
From: Zhang, Larry (L.)
Sent: Friday, February 01, 2008 10:55 AM
To: 'Struts Users Mailing List'
Subject: RE: Struts validator
No, I am using struts 1.1, I would like to implement the
No, I am using struts 1.1, I would like to implement the following case:
In valiation.xml:
--- "Zhang, Larry (L.)" <[EMAIL PROTECTED]> wrote:
> We are not using Struts 2 tag and thus I can't use s:submit tag.
Are you using Struts 2 at all?
You can still use the generated HTML as a template to create your own HTML,
although... not sure why you wouldn't just use the tag in this case.
D
We are not using Struts 2 tag and thus I can't use s:submit tag.
-Original Message-
From: David Harland [mailto:[EMAIL PROTECTED]
Sent: Friday, February 01, 2008 10:01 AM
To: Struts Users Mailing List
Subject: RE: Struts validator
You can do it by having 3 different methods su
/validation.html
-Original Message-
From: Zhang, Larry (L.) [mailto:[EMAIL PROTECTED]
Sent: 01 February 2008 14:45
To: Struts Users Mailing List
Subject: RE: Struts validator
Can some Struts guru answer the following questions?
-Original Message-
From: Zhang, Larry (L.)
Sent
Can some Struts guru answer the following questions?
-Original Message-
From: Zhang, Larry (L.)
Sent: Thursday, January 31, 2008 3:27 PM
To: 'Struts Users Mailing List'
Subject: Struts validator
Hello coworkers,
I have a questions regarding the struts validation..., say I have three
te
f the following link:
> http://www.net-security.org/dl/articles/IntegrigyIntrotoSQLInjectionAttacks.pdf
>
> Thx.
>
> Mike
>
>
> --- On Thu, 11/15/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote:
>
> > From: Antonio Petrelli <[EMAIL PROTECTED]>
> > Subject: Re: Struts Val
), then you're not covered.
But if you use the placeholder and HQL or the Criteria APIs, then
you're covered.
Mike
--- On Thu, 11/15/07, Gary Affonso <[EMAIL PROTECTED]> wrote:
From: Gary Affonso <[EMAIL PROTECTED]>
Subject: Re: Struts Validator to Prevent SQL Injection Att
2007/11/15, Mike Duffy <[EMAIL PROTECTED]>:
> No matter where this is done, the basic problem is we have single quotes,
> double quotes, ampersands, semicolons, and parenthesis in our data.
This may be off topic, but does not is suffice to use prepared
statement and parameters to avoid such attac
2007/11/15, Mike Duffy <[EMAIL PROTECTED]>:
> Prepared statements if created correctly will work, but if your statements
> are created dynamically with text strings as the values instead of "?"
> placeholders problems can occur.
I wonder why do you create query strings this way: you can always
c
Thx Gary.
That is good information.
We are actually using JBoss with EJB 3.0, which uses Hibernate under
the covers, so I am assuming we are covered.
Mike
--- On Thu, 11/15/07, Gary Affonso <[EMAIL PROTECTED]> wrote:
> From: Gary Affonso <[EMAIL PROTECTED]>
> Subject: Re
mp;start=0&postdays=0&postorder=asc
And page 16 of the following link:
http://www.net-security.org/dl/articles/IntegrigyIntrotoSQLInjectionAttacks.pdf
Thx.
Mike
--- On Thu, 11/15/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote:
> From: Antonio Petrelli <[EMAIL PROTECTED]>
.).
Has anyone created an elegant solution for this problem within the Struts
framework?
Mike
--- On Thu, 11/15/07, Dave Newton <[EMAIL PROTECTED]> wrote:
> From: Dave Newton <[EMAIL PROTECTED]>
> Subject: Re: Struts Validator to Prevent SQL Injection Attacks
> To: "
Dave Newton wrote:
--- Mike Duffy <[EMAIL PROTECTED]> wrote:
Does anyone have a great solution for a validator
that will prevent users from entering malicious SQL
into form entry text fields?
I'm not sure that belongs in a validator; unless you
never need to allow the use of a single quote. It
Mike-
There are actually 2 situations to be mindful of
(Not a salesman for these folks but acutenix had a very good tutorial)
SQLInjection
Solution might use a JS Validator..
but just in case JS validator passes it on the Server side to look for AND
/OR funky conditional 1=1 comes to mind
and re
--- Mike Duffy <[EMAIL PROTECTED]> wrote:
> Does anyone have a great solution for a validator
> that will prevent users from entering malicious SQL
> into form entry text fields?
I'm not sure that belongs in a validator; unless you
never need to allow the use of a single quote. It is,
hoever unlik
sorry!
--
View this message in context:
http://www.nabble.com/Struts-validator-%22maskif%22-tf3913144.html#a8601
Sent from the Struts - User mailing list archive at Nabble.com.
What do your log files tell you? It sounds like you've introduced an
error in your validation.xml (either a syntax error, or a semantic error
such as referencing a class that doesn't exist or specifying the method
signature incorrectly).
L.
So,there is a attribute like "maskif"!
Log files s
What do your log files tell you? It sounds like you've introduced an
error in your validation.xml (either a syntax error, or a semantic error
such as referencing a class that doesn't exist or specifying the method
signature incorrectly).
L.
So,there is a attribute like "maskif"!
Log files
What do your log files tell you? It sounds like you've introduced an
error in your validation.xml (either a syntax error, or a semantic error
such as referencing a class that doesn't exist or specifying the method
signature incorrectly).
L.
So,there is a attribute like "maskif"!
Log files
ugachaka wrote:
Hi. I am wondering is there really a validation attribute "maskif".
I one forum, i read that i just need to add the following lines to my
validation-rules and validation xml files and it will work-
mask
^\d{5}$
check
(country=='US')
but i DOESN'T!! :(
even more - w
Add the three validator formset like:
Thanks and regards,
Pazhanikanthan. P (Paz)
Consultant for AXA,
HCL Australia Services Pty. Ltd.
Off : +61-3-9618-4085
Mob : +61-0411-354-838
"Mississippi John Hurt" <[EMAIL PROTECTED]>
2
day, June 22, 2006 10:50 AM
To: Struts Users Mailing List
Subject: Re: Struts Validator: form value1 < form value2
The struts validator guide says you can only join 2 values with and or
or. I'm guessing that means you either have to put in a lot more
parentheses or that you can't use and
e-
> From: Jakub Milkiewicz [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 22, 2006 4:01 AM
> To: Struts Users Mailing List
> Subject: Re: Struts Validator: form value1 < form value2
>
> Yeah validwhen can do it. anyway these antlr expressions are not very
> intuiti
Application Developer
Southwest Financial Services, Ltd.
(513) 621-6699 x1158
-Original Message-
From: Jakub Milkiewicz [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 22, 2006 4:01 AM
To: Struts Users Mailing List
Subject: Re: Struts Validator: form value1 < form value2
Yeah validwhen can d
thwest Financial Services, Ltd.
(513) 621-6699 x1158
-Original Message-
From: Jakub Milkiewicz [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 22, 2006 4:01 AM
To: Struts Users Mailing List
Subject: Re: Struts Validator: form value1 < form value2
Yeah validwhen can do it. anyway these an
Yeah validwhen can do it. anyway these antlr expressions are not very
intuitive.
If You have a problem let me kow i will try to help
2006/6/22, The Jasper <[EMAIL PROTECTED]>:
hi,
the validwhen validator can do what you want.
mvg,
Jasper
On 6/22/06, Truong Xuan Tinh <[EMAIL PROTECTED]> wrote:
hi,
the validwhen validator can do what you want.
mvg,
Jasper
On 6/22/06, Truong Xuan Tinh <[EMAIL PROTECTED]> wrote:
Hi there,
You can write a custom validator in Struts to do that, it's rather easy,
both client-side and server-side. Open the jar of commons-validator to
see some script for exi
Hi there,
You can write a custom validator in Struts to do that, it's rather easy,
both client-side and server-side. Open the jar of commons-validator to
see some script for existed validation rule should help.
Regards.
Tinh
Jeremy Nix wrote:
> How can I use the Struts Validator to enforce the abov
Hi Victor,
I don't have an explicit example but were I to have to do this I would
use a validwhen validation that would look something like:
test
((*this* < 10) or (*this* > 100))
You can find out more details on validwhen in the validator developers
guide: http://struts.apache
Hi Bart,
Thanks for the information, my main questions how
do you validate open interval like (0,10) in float
field.do you have example for that?
Thanks
---victor
--- Bart Busschots <[EMAIL PROTECTED]> wrote:
> Hi Victor,
>
> The key to the validator is that you can use
> multiple validati
Hi Victor,
The key to the validator is that you can use multiple validations on the
one filed so you can combine things like less than and more than to give
you an open range etc. Another very powerful validation is 'valid when'
which allows you to set up complex checks that related to other f
validwhen is server side only.
Niall
On 3/16/06, Partha Pratim Dutta <[EMAIL PROTECTED]> wrote:
> I am using struts validator framework for client side & server side
> validations. I am facing issue with validwhen rule. Validator rules like
> 'required', 'minlength', 'maxlength' are working fine.
quot;false"/>
> redirect="false"/>
>
>
>
> I config I did set the validate ="true"
>
> Using dynaforms? Do I have to set anything else?
>
> it simply forwards to the next jsp.
>
> >From: "Niall Pemberton" <[E
eply-To: "Struts Users Mailing List"
To: "Struts Users Mailing List"
Subject: Re: struts validator
Date: Mon, 21 Nov 2005 20:03:50 -
Can you show the struts-config.xml for your "SetupForm" - is it using
DynaValidatorForm?
Also have you configured the validator p
config I did set the validate ="true"
>
> Using dynaforms? Do I have to set anything else?
>
> it simply forwards to the next jsp.
>
> >From: "Niall Pemberton" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List"
> >To: "Str
on" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: "Struts Users Mailing List"
Subject: Re: struts validator
Date: Mon, 21 Nov 2005 18:17:47 -
What you have specified means that the custName field is only valid when
the
checkbox is set and custName i
What you have specified means that the custName field is only valid when the
checkbox is set and custName is not null - you also want it to be valid when
the checkbox is not set
Try the following...
test
((order != 'true') or (*this* != null))
Niall
- Original Message -
From:
fea jabi wrote:
Have a jsp with a checkbox.
If this is checked have to make sure 2 other textfields are not empty.
I am not sure what to write in below. any help is appreciated.
from jsp how to call this javascript function?
Firstly, why are you trying to write your own valida
Are you using the validator.xml and validation-rules.xml files shipped
with Struts 1.2, or copies from an older version? Do you have the right
versions of all jars in your WEB-INF/lib?
L.
Kanuri, Chand wrote:
Hi all,
i have problem with validator plugin.
in my struts config i enabled the va
--- Laurie Harper <[EMAIL PROTECTED]> wrote:
> Michael Vogt wrote:
> >
> > Is this a known problem or the expecxted behaviour?
> > What is the best way to work around it?
>
> That's the expected behaviour. Floats in Java (as in most programming
>
> languages) have limitted precision. 90.0f =
Michael Vogt wrote:
The Struts Validator floatRange seems to have roundoff error.
For the validation.xml configuration snippet below, user input of
90.1 fails validation, as expected, but 90.01 does not.
min
-90
iling List
Subject: RE: Struts Validator Framework
Hi Hubert,
Thanks for your response. It worked the way you told by using dot delimiters
to point
out the nested object. On the same lines, I have one more question. How do I
validate an array of objects. This is my class stru
[mailto:[EMAIL PROTECTED]
Sent: Thu 8/25/2005 1:36 AM
To: Struts Users Mailing List
Cc:
Subject: Re: Struts Validator Framework
I've never used Validator outside of Struts, but I do know I've
successfully referenced nested
I've never used Validator outside of Struts, but I do know I've
successfully referenced nested elements while validating, by using dot
notation. In your case, you can refer to fields "a", "b", "obj.i,
"obj.j", "obj.obj.k".
Hubert
On 8/24/05, Ashutosh Satyam <[EMAIL PROTECTED]> wrote:
> Hi,
> I a
: Struts Validator Illegal Argument Exception - Digester
problem?
Looks like you have a mistakes in your DTD declaration in the
struts-config.xml. Should be
http://struts.apache.org/dtds/struts-config_1_2.dtd";>
Niall
- Original Message -
From: "Liu, Benson" <[E
Looks like you have a mistakes in your DTD declaration in the
struts-config.xml. Should be
http://struts.apache.org/dtds/struts-config_1_2.dtd";>
Niall
- Original Message -
From: "Liu, Benson" <[EMAIL PROTECTED]>
Sent: Wednesday, April 20, 2005 11:03 PM
I'm working on a Struts/Til
Have a look at
http://www.roseindia.net/struts/address_struts_validator.shtml
Regards
Deepak Kumar
--- "Rosario, Blossom"
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am trying to use client as well as server-side
> validations using the
> Struts Validator.
>
> The mapping in the Struts config file i
couldnt find any info on this behaviour.
Regards,
Akshay
-Original Message-
From: Erik Weber [mailto:[EMAIL PROTECTED]
Sent: Saturday, February 19, 2005 8:23 PM
To: Struts Users Mailing List
Subject: Re: Struts validator woes : maxLength minLength
A little-publicized feature (ahem) of Struts 1.1
d.
Now i am more confused than earlier? :(
any thoughts on thisand I couldnt find any info on this behaviour.
Regards,
Akshay
-Original Message-
From: Erik Weber [mailto:[EMAIL PROTECTED]
Sent: Saturday, February 19, 2005 8:23 PM
To: Struts Users Mailing List
Subject: Re: Struts
A little-publicized feature (ahem) of Struts 1.1 Validator is that arg1
has to be paired with minlength and arg2 has to be paired with
maxlength, as I understand it (last I remember this was true). I don't
know if this has been changed in more recent versions. You are pairing
maxlength with arg
Try changing your 's to all lower case
maxlength
Niall
- Original Message -
From: "Shah, Akshay" <[EMAIL PROTECTED]>
To:
Sent: Saturday, February 19, 2005 12:07 PM
Subject: Struts validator woes : maxLength minLength
> Hii All,
>
> I am using Struts 1.1, DynaValidatorForm.
> The requi
Any ideas please ?
Amjad
-Original Message-
From: Amjad I. Shahrour [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 09, 2005 8:54 AM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: Struts validator [ client side error when using date
validator]
Already tried, but
Already tried, but still not working !
Amjad
-Original Message-
From: Saul Qunming Yuan [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 08, 2005 7:35 PM
To: Struts Users Mailing List
Subject: Re: Struts validator [ client side error when using date
validator]
Off the top of my head
Off the top of my head, try using: datePatternStrict instead of
datePattern in in your validation.xml.
Saul
> Hi,
>
> I have configured and used struts validator for my application,
> Server side validation is working perfectly...
>
> For client side, the required validator is working fine, b
The Validator plug in can recognize fields names such as
"employee.name", and that's the extent of my experience with it.
Nested forms/tags allow you to go much deeper than that, and everytime
I do, I choose to use my own validate() implementation instead of
using Validator.
On Mon, 22 Nov 2004 0
l
- Original Message -
From: "Daniel Kalcevich" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, October 21, 2004 4:10 PM
Subject: RE: Struts Validator - ValidWhen
I have upgraded to 1.2.4 and the problem still ex
:[EMAIL PROTECTED]
Sent: Wednesday, October 20, 2004 6:33 PM
To: Struts Users Mailing List
Subject: Re: Struts Validator - ValidWhen
Version 1.2.1 of Struts had problems and never made "ga" release
quality -
the only "ga" release for Struts 1.2 is Version 1.2.4 - some validwhen
Thompson Marzagao wrote:
Hi all,
I am generating some form field names dynamically, based on the value
of a request variable. Since I am using Niall Pemberton's
LazyValidatorActionForm (see http://www.niallp.pwp.blueyonder.co.uk/),
I don't have a problem getting their values. The problem is vali
Version 1.2.1 of Struts had problems and never made "ga" release quality -
the only "ga" release for Struts 1.2 is Version 1.2.4 - some validwhen
issues were fixed in that release.
http://struts.apache.org/acquiring.html
Niall
- Original Message -
From: "Daniel Kalcevich" <[EMAIL PROTE
ts due to it being the most widely used
and documented...
Matthew.
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: 24 March 2004 11:31
To: Struts Users Mailing List
Subject: Re: Struts Validator
Whats missing from your question is how are you identifying whi
--
From: "Janarthan Sathiamurthy" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Saturday, March 27, 2004 5:57 AM
Subject: RE: Struts Validator and Select boxes
Hi Niall,
I am attaching the validation.xml and the jsp that i have used
76 matches
Mail list logo