Hello,
For my webapp I need to make sure a date is in the form 'mm/dd/yy', but
I haven't been able to achieve this with the struts validator (I only
need the javascript to work for now). All the examples I can find use
'MM/dd/' or 'MM-dd-'. If I switch to one of these and put in a 4
char d
Make sure you you have the return statement in the onsubmit handler.
Otherwise it will always submit the form.
It needs to look like this: onsubmit="return validateFooForm(this)"
If that's not the problem, you may be trying to validate using an
incorrect field name. That's happened to me a few ti
You would have to submit the form when you change tabs. You can do this
with the form.submit() method. You might need to set a field in the form
to tell the submission result page where to redirect the user once the
submission is finished (i.e. send them to B.jsp if everything is ok)
-Andy
-O
Hello,
I'm using Struts 1.1, and I have a jsp that is using indexed fields that
I need to validate using javascript. It seems as though the struts
validator just ignores javascript validations on my fields completely!
For example, if it is the only field that uses a particular validator,
say integ
It looks like the following line of code (in the date validator rule in
validator-rules.xml) loads the pattern:
var datePattern = oDate[x][2]("datePatternStrict");
As far as I can tell, nothing is ever loaded for plain "datePattern",
and this matches up with my experiences of using datePattern (i
Would someone be able to point me somewhere that could explain the
LazyList? I'm having a very similar problem with my jsp, and I found the
javadoc, but I don't understand how to actually instantiate the
LazyList...
Thanks,
Andy
-Original Message-
From: Nicholas L Mohler [mailto:[EMAIL PR
Does this mean it's impossible to do through request scope? I am
attempting to do this, and it would be nice to know if my work is in
vain :)
-Andy
-Original Message-
From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 10, 2003 3:20 PM
To: 'Struts Users Mai
the size of the list, then it will return an empty object instead of
resulting in an ArrayIndexOutOfBounds exception.
-Richard
-Original Message-----
From: Andy Schmidgall [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 10, 2003 1:27 PM
To: Struts Users Mailing List
Subject: RE: dynamic
I'm sure I'm demonstrating a lack of basic knowledge about character
encoding here, but why does "&" work when '&' doesn't? The thing
that gets me is that they both have '&' in them :)
-Andy
-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 11, 200
sign '&'.
-- Chris
NB. This is so basic that you absolutely should look this
up when seriously doing web development.
- Original Message -
From: "Andy Schmidgall" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: T
http://jakarta.apache.org/struts/userGuide/dev_validator.html
:)
-Andy
-Original Message-
From: Clark Kent [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 11, 2003 3:02 PM
To: Struts Users Mailing List
Subject: RE: Conditional check for depends clause in Validation.xml
How do I use
Robert,
I also could not get LazyList to work with our DynaForms.
-Andy
-Original Message-
From: Marcus Peixoto [mailto:[EMAIL PROTECTED]
Sent: Friday, December 12, 2003 1:42 PM
To: Struts Users Mailing List
Subject: RE: dynamically sized form (mostly solved)
Robert,
I tried to use
Shreekanth,
I am using successfully to create a blank
option. Perhaps there is some kind of odd character encoding thing
happening?
-Andy
-Original Message-
From: Rama, Shreekanth (K.) [mailto:[EMAIL PROTECTED]
Sent: Friday, December 19, 2003 1:12 PM
To: [EMAIL PROTECTED]
Subject: Drop
You can do it much the same way as with regular html and javascript.
Here's an example...
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, December 22, 2003 3:57 AM
To: [EMAIL PROTECTED]
Subject: Rollover image
Apparently ctrl-enter sends the email... :)
Here's the example:
-Andy
-Original Message-
From: Andy Schmidgall
Sent: Monday, December 22, 2003 2:03 PM
To: Struts Users Mailing List
Subject: RE: Rollover image
You can do it much the same way as with regular htm
That would require a keyboard, would it not? :)
Could you not have a flag var in the session or something that is only
set by a certain piece of code? If the user typed in the URL directly,
the flag wouldn't be set, and you could filter requests based on that.
-Andy
-Original Message-
Fr
datePattern doesn't work -- you must use datePatternStrict unless you
modify the javascript validation function.
This line is where the pattern is loaded:
var datePattern = oDate[x][2]("datePatternStrict");
Notice that it's loading datePatternStrict instead of datePattern from
the oDate object.
-Andy
-Original Message-
From: Brice Ruth [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 30, 2003 10:44 AM
To: Struts Users Mailing List
Subject: Re: Date validation problem?
Aha, so all I need to do is change "datePattern" to "datePatternStrict"
in my XML?
Andy Schmid
:[EMAIL PROTECTED]
Sent: Tuesday, December 30, 2003 11:08 AM
To: Struts Users Mailing List
Subject: Re: Date validation problem?
How exactly do I get server-side validation? Is this an XOR condition?
Either javascript or server-side, but not both?
Andy Schmidgall wrote:
>The javascript sho
19 matches
Mail list logo