Re: validation question

2010-01-08 Thread Gabriel Belingueres
As a starting point you may check the freemarker .ftl files from the XHTML template. 2010/1/8 Robby Atchison : > Hello,  I would like to know how an actionname-validation.xml is tied to the > client-side validation.  I figure somewhere the xml file is read and > Javascript is output.  I'm having t

Re: Validation question

2008-01-11 Thread Martin Braure de Calignon
Le vendredi 11 janvier 2008 à 15:46 -0800, Dave Newton a écrit : > The validation interceptor will look for, and call, validate${methodName} > (and validateDo${methodName}). > > d. Great ! thank you all :-) -- Martin Braure de Calignon signature.asc Description: Ceci est une partie de message

Re: Validation question

2008-01-11 Thread Dave Newton
The validation interceptor will look for, and call, validate${methodName} (and validateDo${methodName}). d. --- Martin Braure de Calignon <[EMAIL PROTECTED]> wrote: > > Le vendredi 11 janvier 2008 à 09:15 -0500, Ted Husted a écrit : > > On Jan 11, 2008 8:10 AM, Martin Braure de Calignon <[EMAIL

Re: Validation question

2008-01-11 Thread Martin Braure de Calignon
Le vendredi 11 janvier 2008 à 09:15 -0500, Ted Husted a écrit : > On Jan 11, 2008 8:10 AM, Martin Braure de Calignon <[EMAIL PROTECTED]> wrote: > > Of course yes :-). But I need a validate() per method. > > I haven't used it myself, but the syntax validate-action is suppose to > work, in the same

Re: Validation question

2008-01-11 Thread Ted Husted
On Jan 11, 2008 8:10 AM, Martin Braure de Calignon <[EMAIL PROTECTED]> wrote: > Of course yes :-). But I need a validate() per method. I haven't used it myself, but the syntax validate-action is suppose to work, in the same way that it works for the validation framework. HTH, Ted *

Re: Validation question

2008-01-11 Thread Martin Braure de Calignon
Le vendredi 11 janvier 2008 à 07:36 -0500, Ted Husted a écrit : > Rather than use the validation framework, I'd probably go with a > Validate method (by implementing Validatable). Firstly, thank you very much for your answer :) Ok then... That what I though... But my problem is that Validate() i

Re: Validation question

2008-01-11 Thread Ted Husted
Rather than use the validation framework, I'd probably go with a Validate method (by implementing Validatable). Then, instead of using an OGNL expression, you can loop through the list using Java, and call addFieldError if there's a problem. Alternatively, a custom type converter that turned the

Re: Validation Question how to echo back users input in error message?

2005-11-08 Thread Niall Pemberton
Not from the request - from the form bean (or indexed Bean) - in this example lineNumber needs to be a property of the indexed bean. Niall - Original Message - From: "Michael Jouravlev" <[EMAIL PROTECTED]> Sent: Wednesday, November 09, 2005 12:47 AM On 11/8/05, Niall Pemberton <[EMAIL

Re: Validation Question how to echo back users input in error message?

2005-11-08 Thread Michael Jouravlev
On 11/8/05, Niall Pemberton <[EMAIL PROTECTED]> wrote: > The short answer is that there isn't a way to echo back user input in the > error message. ... > There are two places that I know of, where this kind of functionality has > been provided. The first is in the "extends validator" I wrote (see t

Re: Validation Question how to echo back users input in error message?

2005-11-08 Thread Niall Pemberton
The short answer is that there isn't a way to echo back user input in the error message. Most of the time I don't think its necessary to do so anyway - since if you're re-displaying/highlighting errors then what is the need. The one time I scenario I wanted to do something like that, was when I had

Re: Validation Question how to echo back users input in error message?

2005-11-04 Thread Michael Jouravlev
I would like to know the answer on this too. I searched the Net, all examples use properties from property file. Using resource="false" does not help with either (neither?) of these variants: where registrationForm is action form definition in struts-config.xml, nestedUser is a nested BO. Ori

Re: validation question...

2005-07-22 Thread Aleksandar Matijaca
I like the CSS 'trick' -- I will try it tonight ! Thanks again Wendy, Regards, Alex. On 7/22/05, Wendy Smoak <[EMAIL PROTECTED]> wrote: > > From: "Aleksandar Matijaca" <[EMAIL PROTECTED]> > > I would like > > to automatically place a little red * right beside the input field. > > For my passwo

Re: validation question...

2005-07-21 Thread Wendy Smoak
From: "Aleksandar Matijaca" <[EMAIL PROTECTED]> I would like to automatically place a little red * right beside the input field. For my password confirmation field, wnen I put beside the text field, I get the WHOLE STRING for the 'required' validation, instead, I would like to display only a *

Re: validation question...

2005-07-21 Thread Aleksandar Matijaca
It didn't work, but thanks for the effort Laurie... Regards, Alex. On 7/21/05, Laurie Harper <[EMAIL PROTECTED]> wrote: > > You could add errorClassId on the input element and use CSS to insert an > image of a little red *... :-) I can't think of a clean way to find out if > an error exists f

Re: validation question...

2005-07-21 Thread Aleksandar Matijaca
Thanks Laurie, I will try it !! Cheers, Alex. On 7/21/05, Laurie Harper <[EMAIL PROTECTED]> wrote: > > You could add errorClassId on the input element and use CSS to insert an > image of a little red *... :-) I can't think of a clean way to find out if > an error exists for a particular prope

Re: validation question...

2005-07-21 Thread Laurie Harper
You could add errorClassId on the input element and use CSS to insert an image of a little red *... :-) I can't think of a clean way to find out if an error exists for a particular property though. This might work (haven't tried it): * L. Aleksandar Matijaca wrote: Hi there, I am current

Re: Validation question

2005-02-10 Thread Niall Pemberton
Not yet. - Original Message - From: "kjc" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Thursday, February 10, 2005 8:04 PM Subject: Validation question > Is it possible to pass the incorrect field value that was entered by the > user > to the error message such that > >

Re: validation question

2004-10-18 Thread Justy Wong
turn null; > } else { > return super.validate(actionMapping, httpServletRequest); > } > } > > > > - Original Message - > From: "Joe Hertz" <[EMAIL PROTECTED]> > To: "'Struts Users Mailing List'" <[EMAIL PROT

Re: validation question

2004-10-18 Thread Justy Wong
, httpServletRequest); } } - Original Message - From: "Joe Hertz" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Tuesday, October 19, 2004 11:43 AM Subject: RE: validation question > > Joe, do u mean checking the

RE: validation question

2004-10-18 Thread Joe Hertz
> Joe, do u mean checking the field with "validwhen" using > validation.xml or > implement the actionForm.validate() ? > I really want to use the basic struts validation framework instead of > implementing validate() function to minimize the maintainence cost. You can do it both ways. Use valida

Re: validation question

2004-10-18 Thread Justy Wong
for your answer!! that means I've no other choices apart from changing my program - Original Message - From: "Eddie Bush" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, October 19, 2004 10:53 AM Subject: Re:

Re: validation question

2004-10-18 Thread Eddie Bush
Nice trick, Joe - hadn't thought of doing that :-) - Original Message - From: "Joe Germuska" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, October 18, 2004 9:40 PM Subject: Re: validation question At 10:28 AM

Re: validation question

2004-10-18 Thread Eddie Bush
- Original Message - From: "Justy Wong" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, October 18, 2004 9:28 PM Subject: Re: validation question Thx for your suggestions. 1) 2 action mappings -- 1 with validation tu

Re: validation question

2004-10-18 Thread Joe Germuska
At 10:28 AM +0800 10/19/04, Justy Wong wrote: Thx for your suggestions. 1) 2 action mappings -- 1 with validation turned off (welcome.do) and 1 with it on (login.do). that means for every action, I've to create 1 more action. but it will almost double the maintainence affort. In practice, it's rar

Re: validation question

2004-10-18 Thread Justy Wong
uot;Durham David R Jr Contr 805 CSPTS/SCE" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, October 19, 2004 1:23 AM Subject: RE: validation question > > The validation works fine however, when I just type the > http://l

RE: validation question

2004-10-18 Thread Durham David R Jr Contr 805 CSPTS/SCE
> The validation works fine however, when I just type the http://localhost:8080/login.do > in my browser (no submit), the validation error will show up at once. > I understand that it's just like I submit a form to login.do action without any > parameter. My question is, do struts provide any sim

Re: validation question

2004-10-18 Thread Yves Sy
Hi, Struts doesn't have anything like that. IMHO, I also think that using validator on the login page is not good practice as it would give malicious users a good idea on how your app handles authentication. Usually, you'd just return a generic error message such as "Username/password invalid" w

RE: Validation question. Disallow < > characters using regex mask

2004-08-02 Thread Kris Barnhoorn
Correction: ... ... -Oorspronkelijk bericht- Van: Kris Barnhoorn [mailto:[EMAIL PROTECTED] Verzonden: maandag 2 augustus 2004 22:42 Aan: 'Struts Users Mailing List' Onderwerp: RE: Validation question. Disallow < > characters using regex mask Had the same p

RE: Validation question. Disallow < > characters using regex mask

2004-08-02 Thread Kris Barnhoorn
Had the same problem Solution: ... ... kris -Oorspronkelijk bericht- Van: Eric Dahnke [mailto:[EMAIL PROTECTED] Verzonden: dinsdag 18 mei 2004 20:24 Aan: Struts Users Mailing List Onderwerp: Validation question. Disallow < > characters using regex mask Hello List, Validation works