iginal Message -
From: "Bryan Hunt" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, July 15, 2004 2:20 PM
Subject: Re: validation wierdness possibly related to multiple struts config
files
finally solved it.
When you hav
--
From: "Bryan Hunt" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, July 15, 2004 2:20 PM
Subject: Re: validation wierdness possibly related to multiple struts config
files
> finally solved it.
>
> When you have th
I am using this DTD declaration in my validation.xml and
validator-rules.xml files:
"-//Apache Software Foundation//DTD Commons Validator Rules
Configuration 1.1//EN"
"http://jakarta.apache.org/commons/dtds/validator_1_1.dtd";>
It lets me access the new element.
Bill
Bryan
finally solved it.
When you have the following DTD definition in your validation.xml file
snip=
http://jakarta.apache.org/commons/dtds/validator_1_2_0.dtd";>
=snip
It breaks.
When you have the following DTD definition in your validation.xml file *
*snip=
http://jakarta.apache.org/commons/dtds/valid
Ok , dunno who to report this to but this validator stuff needs to be
looked at before this
is released to the public cause it's a bit of a mess.
Just noticed that the version of validator-rules that is distributed is
for the validator_1_1.dtd version.
I think somebody needs to take a little lo
Thank you Bill, your answer was correct. I've found that
commons-validator as distibuted with the latest
1.2.1 version of struts doesn't include the
http://jakarta.apache.org/commons/dtds/validator_1_2_0.dtd
file. So despite my specifying the DTD like so
snip=
"-//Apache Software Found
I am using a nightly build from about 1 week ago. I never updated my
dtd for validator though. Im going to do that and check out your
suggestion. Never occured to me that it mightnt be backwards
compatatable.
--b
On Tue, 13 Jul 2004 15:52:41 -0400, Bill Siggelkow
<[EMAIL PROTECTED]> wrote:
> Are
Are you using Struts 1.2 or the nightly build? I had this issue the
other day and I think I got around it by using the new element
instead of -- simply change arg0 to arg in your validation.xml.
Or you can try using the new position attribute:
Bill Siggelkow
Bryan Hunt wrote:
I have the foll
within my validation.xml?
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Thursday, July 01, 2004 11:21 AM
To: Struts Users Mailing List
Subject: Re: Validation: How do I do a field check for NotEqual? (!=)
Assuming a String datatype: if (!myString.equals
Assuming a String datatype: if
(!myString.equals(yourString)) {System.out.println("Not equal.};
Dennis
[EMAIL PROTECTED]
07/01/2004 02:15 PM
Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>
To
[EMAIL PROTECTED]
cc
Subject
Validation: How do I do a
field check
When you only want one (1) of something follow with a question mark "?"
i.e. [A-Za-z]?
OK
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 24, 2004 3:34 PM
To: [EMAIL PROTECTED]
Subject: RE: Validation Mask help please
try somethi
to end
-Ram
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 24, 2004 2:39 PM
To: [EMAIL PROTECTED]
Subject: RE: Validation Mask help please
What is the $ for?
I know the ^ is to start at the beginning.
-Original Message-
From: [EMAIL
What is the $ for?
I know the ^ is to start at the beginning.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 24, 2004 12:34 PM
To: [EMAIL PROTECTED]
Subject: RE: Validation Mask help please
try something like [a-zA-Z][0-9]{4}-\d{3}
-Ram
Thanks!
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 24, 2004 12:39 PM
To: [EMAIL PROTECTED]
Subject: RE: Validation Mask help please
http://www.weitz.de/regex-coach/ might be useful
-Ram
-Original Message-
From: [EMAIL PROTECTED
http://www.weitz.de/regex-coach/ might be useful
-Ram
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 24, 2004 2:34 PM
To: [EMAIL PROTECTED]
Subject: RE: Validation Mask help please
try something like [a-zA-Z][0-9]{4}-\d{3}
-Ram
try something like [a-zA-Z][0-9]{4}-\d{3}
-Ram
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 24, 2004 2:06 PM
To: [EMAIL PROTECTED]
Subject: Validation Mask help please
I have the following field validation:
mask
^[A-Za-z]\d{4}-\d{3
Off the top of my head, you may need to escape the hyphen, ie. \-
Saul
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 24, 2004 3:06 PM
> To: [EMAIL PROTECTED]
> Subject: Validation Mask help please
>
>
> I have the following field val
|
| cc:
Yeah, I think its working, thanks
-Original Message-
From: Matt Bathje [mailto:[EMAIL PROTECTED]
Sent: Friday, June 11, 2004 8:10 PM
To: Struts Users Mailing List
Subject: Re: validation for optional fields
Maybe I'm missing something here, but why can't you just setup the
orks on the 1.2 nightlies (Well...the nighlies from
january, which is what I have been using for my project...)
Matt
- Original Message -
From: "Matt Bathje" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, June 11, 20
.
Sample code in validation.xml would be:
Matt
- Original Message -
From: "Nicholas L Mohler" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, June 11, 2004 9:34 AM
Subject: RE: validation for optional fields
ng using validator and working on Struts 1.1
-Original Message-
From: Axel Seinsche [mailto:[EMAIL PROTECTED]
Sent: Friday, June 11, 2004 7:24 PM
To: Struts Users Mailing List
Subject: Re: validation for optional fields
Kalra, Ashwani wrote:
>hi,
>how can I validate an optional fie
I am validating using validator and working on Struts 1.1
-Original Message-
From: Axel Seinsche [mailto:[EMAIL PROTECTED]
Sent: Friday, June 11, 2004 7:24 PM
To: Struts Users Mailing List
Subject: Re: validation for optional fields
Kalra, Ashwani wrote:
>hi,
>how can I valid
Kalra, Ashwani wrote:
hi,
how can I validate an optional field. ie validate only if there is some
value in it. For example. I want to validate a field which should of type
int.But it should be validated only if use has entered some value in it.
hi,
if you are validating in your form or action c
Behalf Of Bill Siggelkow
Sent: Thursday, June 10, 2004 11:00 AM
To: [EMAIL PROTECTED]
Subject: Re: Validation of dynaActionForm too early
Set validate="false" on the Action that forwards to the JSP containing
the form. Set 'validate="true"' and set 'input="/my
if the form was
posted or not thereby avoiding two mappings.
But the question still remains.
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Siggelkow
Sent: Thursday, June 10, 2004 11:00 AM
To: [EMAIL PROTECTED]
Subject: Re: Validation of dynaActionForm too early
Set validate="false" on the Action that forwards to the JSP containing
the form. Set 'validate="true"' and set 'input="/myJsp.jsp"' for the
action that processes the form.
Tom Ansley wrote:
Hi all,
I am trying to use a dynaActionForm. The problem I am having is that
when a user requests an act
> From: Tom Ansley [mailto:[EMAIL PROTECTED]
> How do I go about getting it so that the first time the
> action is called the validate() method is not called?
http://jakarta.apache.org/struts/faqs/newbie.html#avoidValidate
I use LookupDispatchAction so I don't have separate actions. Instead,
i
If you have an attribute on your form
'org.apache.struts.taglib.html.CANCEL' the validation will not run.
You will, however, need to find out which button (or link) the user
pressed (Back or Cancel) using some other mechanism:
isCancelled(httpServletRequest) simply tests the existence of this
attr
ez <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Re: Validation problem
Date: Tue, 18 May 2004 17:43:16 +0200
Try:
- Original Message -
From: "
...
From: Iván Rodríguez <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Re: Validation problem
Date: Tue, 18 May 2004 17:43:16 +0200
Try:
-
Try:
- Original Message -
From: "None None" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 18, 2004 5:32 PM
Subject: Validation problem
> Hello again... I'm playing with validation for the first time, and I got
it
> almost working completely, one
Thanks Sven, I am now doing it with DateValidator class in validator
package. It works.
Shrihas.
--- In [EMAIL PROTECTED], Sven Kiesewetter <[EMAIL PROTECTED]> wrote:
> I think, you have to implement your own validator. Let is inherent
from
> the original validator and overwrite the appropiate
I think, you have to implement your own validator. Let is inherent from
the original validator and overwrite the appropiate method. Than you can
skip the validation if the field was empty.
Sven
Shah, Shrihas (OFT) wrote:
Hi :
I have a date field and it is not a required field. If somebody
David Erickson wrote:
Hi I am using some ValidatorActionForms.. here's an example of my validation
mapping:
say
than in your Applicaltinresources.properies:
name.of.my.email=" this email"
error.email.format="has a wrong format"
my message looks like error.email.format={0} is no
Take a look at
JSTL format with multiple Resource Bundles
http://www.cheblogs.com/roller/page/princeamin/20031104
- Original Message -
From: "johannes Schwarz" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, May 04, 2004 3:54 PM
Subject:
Hi Johannes,
are you aware of localization / i18n support by having multiple language property
files? Like:
XXX_de.properties
XXX_en.properties
XXX_fr.properties
...
Struts then chooses the properties-file depending on locale. Maybe a look at that
stuff helps.
good luck
Nils
This messa
my book, thats not a "simpler" solution.
Niall
- Original Message -
From: "Berke, Wayne [IT]" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, April 22, 2004 4:44 PM
Subject: RE: Validation with 2 masks?
Thanks f
lto:[EMAIL PROTECTED]
Sent: Wednesday, April 21, 2004 5:23 PM
To: Struts Users Mailing List
Subject: Re: Validation with 2 masks?
Theres nothing in the "standard" mask validation that ships with struts that
allows you to do this, but it would be pretty straight forward to write and
conf
gt;
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, April 21, 2004 4:23 PM
Subject: Re: Validation with 2 masks?
> Theres nothing in the "standard" mask validation that ships with struts
that
> allows you to do this, but it would be pretty straigh
Theres nothing in the "standard" mask validation that ships with struts that
allows you to do this, but it would be pretty straight forward to write and
configure your own validator to do this. Set up a static mehtod somewhere
that does pretty much what the FieldChecks.validateMask() method does,
I hope someone responds to this...I need the solution to this problem as well.
-Original Message-
From: Berke, Wayne [IT]
Sent: Wednesday, April 21, 2004 9:03 AM
To: Struts Users Mailing List
Subject: Validation with 2 masks?
I'd like to a property validation against 2 different regular
Hi Frank, everyone,
we were talking about the validator i18n not working in struts.
The patch that Adam Kramer submitted for the bugzilla issue on the
subject has been updated and he is looking for someone to test it in
earnest before he puts it into bugzilla.
Say the word and I'll forward it to
I forgot the bugzilla link::
http://issues.apache.org/bugzilla/show_bug.cgi?id=21760
On 04/07/2004 11:20 AM Adam Hardy wrote:
It is now validating server-side as well as client-side for me. Don't
know what my server was doing, but it's doing it OK now.
But the problem with the bundle is still
It is now validating server-side as well as client-side for me. Don't
know what my server was doing, but it's doing it OK now.
But the problem with the bundle is still there.
There is a bugzilla issue from about 9 months ago with patches, but I
don't think it was committed. Strangely enough the
Isn't Struts an opensource-application?
If it really hurts you: investigate and propose a bug-fix...
-Original Message-
From: Otto, Frank [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 6. April 2004 09:24
To: 'Struts Users Mailing List'
Subject: AW: validation with struts 1.2
And is there an
Are the fields in this order in your validation.xml?
Niall
- Original Message -
From: "P Cotton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, April 04, 2004 4:32 PM
Subject: Validation errors displayed in reverse order
> Hi everyone,
>
> I am having problems with the order
At 4:32 PM +0100 4/4/04, P Cotton wrote:
Hi everyone,
I am having problems with the order that validation errors are displayed
using Struts. I am using validation.xml and have a JSP page with a list of
form fields e.g.
Is this the same as http://issues.apache.org/bugzilla/show_bug.cgi?id=27992 ?
901 - 948 of 948 matches
Mail list logo