Validator datePattern difficulties

2003-12-01 Thread Andy Schmidgall
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

RE: Validator: Unwanted Client side AND Server side validation

2003-12-03 Thread Andy Schmidgall
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

RE: Server and Client side Validation at only once

2003-12-05 Thread Andy Schmidgall
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

JavaScript validation of indexed properties

2003-12-10 Thread Andy Schmidgall
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

RE: Validation: Problem with datePattern and JavaScript

2003-12-10 Thread Andy Schmidgall
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

RE: dynamically sized form (mostly solved)

2003-12-10 Thread Andy Schmidgall
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

RE: dynamically sized form (mostly solved)

2003-12-10 Thread Andy Schmidgall
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

RE: dynamically sized form (mostly solved)

2003-12-10 Thread Andy Schmidgall
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

struts-user@jakarta.apache.org

2003-12-11 Thread Andy Schmidgall
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

struts-user@jakarta.apache.org

2003-12-11 Thread Andy Schmidgall
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

RE: Conditional check for depends clause in Validation.xml

2003-12-11 Thread Andy Schmidgall
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

RE: dynamically sized form (mostly solved)

2003-12-15 Thread Andy Schmidgall
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

RE: Drop down value - First Row to be Blank

2003-12-19 Thread Andy Schmidgall
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

RE: Rollover image

2003-12-22 Thread Andy Schmidgall
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

RE: Rollover image

2003-12-22 Thread Andy Schmidgall
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

RE: Is there a way to prevent urls from being entered from the browser?

2003-12-29 Thread Andy Schmidgall
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

RE: Date validation problem?

2003-12-30 Thread Andy Schmidgall
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.

RE: Date validation problem?

2003-12-30 Thread Andy Schmidgall
-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

RE: Date validation problem?

2003-12-30 Thread Andy Schmidgall
:[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