Re: Validate method in action form

2003-12-18 Thread Ted Husted
, Ted. vasudevrao gupta wrote: I have a single action form bean for multiple JSP pages. Validation of fields for JSP1 is different from validation of fields in JSP2. How should I write the validate() method in the form so that depending on the action, appropriate validation of fields is done. Re

Validate method in action form

2003-12-18 Thread vasudevrao gupta
I have a single action form bean for multiple JSP pages. Validation of fields for JSP1 is different from validation of fields in JSP2. How should I write the validate() method in the form so that depending on the action, appropriate validation of fields is done. Regards Vasudevraogupta

Re: validation.xml and validate() method

2003-11-24 Thread Sergey Smirnov
t; Hi there, > > as I can see, when I implement the validate() method in the ActionForm, it > means, that validation throught validation.xml file (inner struts > validation) stops to work. > > ??? Am I right ??? > > This seems to me so... Am I doing something wrong? How can

Re: validation.xml and validate() method

2003-11-24 Thread Dirk Markert
Hello Sporak, call super.validate(). *** HS> Hi there, HS> as I can see, when I implement the validate() method in the ActionForm, it HS> means, that validation throught validation.xml file (inner struts HS> validati

validation.xml and validate() method

2003-11-24 Thread Honza Spurný
Hi there, as I can see, when I implement the validate() method in the ActionForm, it means, that validation throught validation.xml file (inner struts validation) stops to work. ??? Am I right ??? This seems to me so... Am I doing something wrong? How can I walk throught both validation? If it

Re: validate method

2003-10-31 Thread Ben Anderson
st" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: validate method Date: Fri, 31 Oct 2003 15:47:37 +0530 Hi All, For some reason, I have to do some form field validation in my Action class. And, if the validation fails, I have to return the control to the same(input) page to displa

validate method

2003-10-31 Thread Khandelwal, Rahul
Hi All, For some reason, I have to do some form field validation in my Action class. And, if the validation fails, I have to return the control to the same(input) page to display the error msg (using ). I have previously done it in the validate method in the Form bean, but don't know how t

Re: Multiple error pages from validate method

2003-10-24 Thread Max Cooper
003 12:15 PM Subject: Multiple error pages from validate method > Hello, > > I am using one ActionForm bean for multiple pages..say for add.jsp and > edit.jsp.But when I validate and I get an error I want the user to go to > different error pages instead of one just specified in st

Re: Multiple error pages from validate method

2003-10-24 Thread Geeta Ramani
Ramani [mailto:[EMAIL PROTECTED] > Sent: Friday, October 24, 2003 3:36 PM > To: Struts Users Mailing List > Subject: Re: Multiple error pages from validate method > > Here's one "hacky" way of doing this: Set a request attribute, something > like "goToErrorPage2

RE: Multiple error pages from validate method

2003-10-24 Thread VKeswani
} } Do the same for edit. Of course there are a lot of other ways to do this as well. -Tim -Original Message- From: Geeta Ramani [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2003 3:36 PM To: Struts Users Mailing List Subject: Re: Multiple error pages from validate method Here&#

RE: Multiple error pages from validate method

2003-10-24 Thread Chen, Gin
lot of other ways to do this as well. -Tim -Original Message- From: Geeta Ramani [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2003 3:36 PM To: Struts Users Mailing List Subject: Re: Multiple error pages from validate method Here's one "hacky" way of doing this: Set

Re: Multiple error pages from validate method

2003-10-24 Thread VKeswani
bject: Re: Multiple error pages from validate method Here's one "hacky" way of doing this: Set a request attribute, something like "goToErrorPage2" right after you validate. On the top of the error page if that attribute goToErrorPage2 is nonnull, then forward

Re: Multiple error pages from validate method

2003-10-24 Thread Geeta Ramani
Here's one "hacky" way of doing this: Set a request attribute, something like "goToErrorPage2" right after you validate. On the top of the error page if that attribute goToErrorPage2 is nonnull, then forward to the second error page else simply render the "normal" error page.. [EMAIL PROTECTED] w

Multiple error pages from validate method

2003-10-24 Thread VKeswani
Hello, I am using one ActionForm bean for multiple pages..say for add.jsp and edit.jsp.But when I validate and I get an error I want the user to go to different error pages instead of one just specified in struts-config file as input parameter? Can somebody help??

RE: setting an ActionErrors object for a form outside a validate method...

2003-09-20 Thread alan
Thank you. saveErrors() had eluded me. -Original Message- From: Charles Canning [mailto:[EMAIL PROTECTED] Sent: Saturday, September 20, 2003 11:52 AM To: 'Struts Users Mailing List' Subject: RE: setting an ActionErrors object for a form outside a validate method... Hi A

RE: setting an ActionErrors object for a form outside a validate method...

2003-09-20 Thread Charles Canning
t for a form outside a validate method... My Action class does some processing that involves going to the database. This work could throw a SQLException and I want that to generate an error message for the user. However I don't want to do this work in the validate method, only to have to d

setting an ActionErrors object for a form outside a validate method...

2003-09-20 Thread alan
My Action class does some processing that involves going to the database. This work could throw a SQLException and I want that to generate an error message for the user. However I don't want to do this work in the validate method, only to have to do it again in the execute method (be

How to get Messages Resources from the validate method?

2003-08-24 Thread [EMAIL PROTECTED]
In order to avoid using the deprecated getResources method from the ActionServlet, I would like to know how to get access to the module message resources bundles configured in the struts-config.xml from the ActionForm validate method. Thanks. Antonio Gonzalez

RE: Why would I want to use the ActionForm validate() method

2003-08-19 Thread David Graham
no validation. Also there are differences between > how > each browser handles the DOM and javascript in general. > > -Original Message- > From: Madhu Nair [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 19, 2003 2:33 AM > To: [EMAIL PROTECTED]; [EMAIL PROT

RE: Why would I want to use the ActionForm validate() method

2003-08-19 Thread Mainguy, Mike
tween how each browser handles the DOM and javascript in general. -Original Message- From: Madhu Nair [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 19, 2003 2:33 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Why would I want to use the ActionForm validate() method Hi, Why wo

Re: Why would I want to use the ActionForm validate() method

2003-08-19 Thread Vipin Bhatia
platforms - Original Message - From: "Madhu Nair" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, August 19, 2003 12:03 PM Subject: RE: Why would I want to use the ActionForm validate() method > > Hi, > > Why would I wa

RE: Why would I want to use the ActionForm validate() method

2003-08-18 Thread Madhu Nair
Hi, Why would I want to use the Struts ActionForm validate() method when I can achieve the same functionality using Javascript? I assume that the user would never disable javascript. Regards , Madhu - To unsubscribe, e

Re: Why would I want to use the ActionForm validate() method

2003-08-18 Thread vellosa
What happens of the user disables javascript in their browser? > from:Madhu Nair <[EMAIL PROTECTED]> > date:Tue, 19 Aug 2003 07:05:01 > to: [EMAIL PROTECTED] > subject: Re: Why would I want to use the ActionForm validate() method > > > Hi, >

Why would I want to use the ActionForm validate() method

2003-08-18 Thread Madhu Nair
Hi, Why would I want to use the Struts ActionForm validate() method when I can achieve the same functionality using Javascript? Regards , Madhu - Madhu Nair Member of Technical Staff, Persistent Systems Private Limited, Pune 411016 INDIA. Tel: +91-20

Re: validate() method - and form in session scope (solved)

2003-07-21 Thread Khalid K.
humm..was a dumb mistake :) in struts-config i had validate set to "false" :) - Original Message - From: "Khalid K." <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, July 21, 2003 10:23 AM Subject: val

validate() method - and form in session scope

2003-07-21 Thread Khalid K.
Hello all, If an ActionForm bean's scope is "session", does the validate() method get called only once ?? I have several actions that post to the same form, but it seems that the validate method is only called once when the form gets created Any help is appreciated. Kh

RE: What should be in validate() method when using struts validator package

2003-07-10 Thread sriram
g displayed properly. What could be the reason? -Original Message- From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 12:32 PM To: [EMAIL PROTECTED] Subject: RE: What should be in validate() method when using struts validator package HI again this pdf gives

RE: Validate method going in infinite Loop

2003-07-10 Thread Nagendra Kumar O V S
    hi, well then.. do not perform any validations in the validate method. (leave it empty). do this email validation in the action class. so if ur email is invalid add that to errors and also get other data from db and then

RE: Validate method going in infinite Loop

2003-07-10 Thread Pankaj Borgaonkar
Thanks Nagendra But on the JSP page I want to show both the errors as well as the data ( form bean variable which are populated in the performAction() method of action class. ) i.e. in validate method if email address is invalid then I am adding the errors and forwarding to JSP page, this

Re: Validate method going in infinite Loop

2003-07-10 Thread Nagendra Kumar O V S
or/emailcreation/va_pr_emailsetup_main.jsp"redirect="false"/>  ** this action mapping goes into a infinite loop , becos, if u find an error ur calling emailcreation.mo(input parameter). that is it is calling itself. and hence infinte loop. everytime u call emailcre

RE: What should be in validate() method when using struts validator package

2003-07-09 Thread Nagendra Kumar O V S
s.xml   --nagi   ---Original Message---   From: Struts Users Mailing List Date: Thursday, July 10, 2003 12:10:40 PM To: 'Struts Users Mailing List' Subject: RE: What should be in validate() method wh

Validate method going in infinite Loop

2003-07-09 Thread Pankaj Borgaonkar
Hi All, I am validating email address entered by user, using in validate method of formBean. If the email address is invalid I am adding the errors. Struts Config entries: OR Second one is going into the loop and first one is not getting the values from

RE: What should be in validate() method when using struts validator package

2003-07-09 Thread sriram
: Re: What should be in validate() method when using struts validator package hi, struts validator provides both client side as well as server side validations. if u want to use the serverside validations , u have to extend the validatorForm instead of ActionForm and remove the validate() method

Re: What should be in validate() method when using struts validator package

2003-07-09 Thread Nagendra Kumar O V S
hi, struts validator provides both client side as well as server side validations. if u want to use the serverside validations , u have to extend the validatorForm instead of ActionForm and remove the validate() method all together. but, in my

What should be in validate() method when using struts validator package

2003-07-09 Thread sriram
What should be in validate() method when we use Struts Validator package? Should it be an empty method? My current validate() method (without using Struts Validator) is as follows:(What should it be if I implement validations in validator-rules.xml and validations.xml)? Pl. suggest. public

Re: Reasonable to use EJBs for validation in ActionForm validate method?

2003-06-10 Thread David Graham
For validation that can only be done against the database, should this go in the validate method or in the execute method? I usually do it in execute() and keep basic validations in the Validator framework. For example checking that a customer doesn't alerady exist before inserting i

Reasonable to use EJBs for validation in ActionForm validate method?

2003-06-10 Thread Aaron Robinson
For validation that can only be done against the database, should this go in the validate method or in the execute method? For example checking that a customer doesn't alerady exist before inserting it, or checking that a user has entered a valid address before the execute method is call

[REPOST] html:file tag and exception in validate method

2003-02-24 Thread atta ur rehman
- Original Message - From: "atta ur rehman" <[EMAIL PROTECTED]> To: "struts users mailing list" <[EMAIL PROTECTED]> Sent: Friday, February 21, 2003 9:33 AM Subject: html:file tag and exception in validate method Dear all, One of our JSP has html:file tag

Re: html:file tag and exception in validate method

2003-02-21 Thread atta ur rehman
Any comments, anybody? - Original Message - From: "atta ur rehman" <[EMAIL PROTECTED]> To: "struts users mailing list" <[EMAIL PROTECTED]> Sent: Friday, February 21, 2003 9:33 AM Subject: html:file tag and exception in validate method Dear all, One of

html:file tag and exception in validate method

2003-02-21 Thread atta ur rehman
Dear all, One of our JSP has html:file tag in it. Whenever validate method of the associated ActionFrom returns any errors, the JSP container throws ClassCastException. java.lang.ClassCastException at com.newatlanta.servletexec.SERequestDispatcher.forward(SERequestDispatcher.java:171

[OT] RE: validate() method is ActionForm

2003-02-14 Thread Sundar Narasimhan
>Any more personal attacks like this, or the previous response's profanity, >are likely to get you banned -- then you won't have to worry about >questions you think are below your dignity to answer politely. >Craig McClanahan Thank you Craig. I think this list is great, and now that I'm slowly g

[OT] RE: validate() method is ActionForm

2003-02-13 Thread Rabih Yazbeck
sers mailing list > Subject: validate() method is ActionForm > > Dear all, > > Struts 1.0.2. > > Are form properties updated before the validate() method is called? > > Regards, > > ATTA - To uns

[OT] RE: validate() method is ActionForm

2003-02-13 Thread Pani, Gourav
l. having said that, i still think we should all try to read the API before posing questions. let's all keep up the good work. -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 3:50 PM To: Struts Users Mailing List Subject: Re: valid

Re: validate() method is ActionForm

2003-02-13 Thread James Mitchell
t;[EMAIL PROTECTED]> Sent: Thursday, February 13, 2003 3:42 PM Subject: RE: validate() method is ActionForm I think I can safely say that that is the dumbest question I have ever seen on this list. And that's saying something. > -Original Message- > From: atta ur rehman [m

RE: validate() method is ActionForm

2003-02-13 Thread Craig R. McClanahan
On Thu, 13 Feb 2003, James Childers wrote: > Date: Thu, 13 Feb 2003 14:42:09 -0600 > From: James Childers <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: Struts Users Mailing List <[EMAIL PROTECTED]> > Subject: RE: validate()

RE: validate() method is ActionForm

2003-02-13 Thread James Childers
t; Subject: validate() method is ActionForm > > Dear all, > > Struts 1.0.2. > > Are form properties updated before the validate() method is called? > > Regards, > > ATTA - To unsubscribe, e-mail:

RE: validate() method is ActionForm

2003-02-13 Thread Durham David Cntr 805CSS/SCBE
RTFM ... just kidding. Of course you dipshit, also just kidding. -Dave > -Original Message- > From: atta ur rehman [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 13, 2003 2:41 PM > To: struts users mailing list > Subject: validate() method is ActionForm &

validate() method is ActionForm

2003-02-13 Thread atta ur rehman
Dear all, Struts 1.0.2. Are form properties updated before the validate() method is called? Regards, ATTA

Re: exception handling in actionForm validate method

2003-01-21 Thread Giri Alwar
> > In the validate method of my actionForm I am using the Jakarta regular > > expression api to validate user input. > > > > In the method I use a try catch block when creating a RE (regular expression > > pattern) object. In the event an exception is thrown the

Re: exception handling in actionForm validate method

2003-01-21 Thread Ben Starr
> In the validate method of my actionForm I am using the Jakarta regular > expression api to validate user input. > > In the method I use a try catch block when creating a RE (regular expression > pattern) object. In the event an exception is thrown the catch block will > c

exception handling in actionForm validate method

2003-01-21 Thread Rick Kern
In the validate method of my actionForm I am using the Jakarta regular expression api to validate user input. In the method I use a try catch block when creating a RE (regular expression pattern) object. In the event an exception is thrown the catch block will catch the exception-- but how

formbean setup validate method

2002-10-18 Thread Daniel Haynes
We have a formbean (CreateUser) which we want to do basic validation on the fields (not null/empty) so validation is set to true within the CreateUser action config. However when this action is first called to set up the form we don't want the validation to occur because there is nothing in the for

RE: [Validator HOW-TO] Invoking Validator validate method fromOv errd den validate method

2002-10-01 Thread Jerry Jalenak
; From: Jerry Jalenak [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, October 01, 2002 11:18 AM > To: '[EMAIL PROTECTED]' > Subject: [Validator HOW-TO] Invoking Validator validate method from > Overrd den validate method > > > I have the following three button

[Validator HOW-TO] Invoking Validator validate method fromOverrd den validate method

2002-10-01 Thread Jerry Jalenak
idate method, check the button value, and if it is Submit, go ahead and let Validator do its thing, otherwise don't. The question I can't seem to answer is, how do I do this? In other words, what do I pass back out of my validate method so that Validator either will (or will not) 'do its

Re: DB hit from ActionForm Validate method

2002-09-07 Thread adam kramer
It's not common practice to put business-data validation in the form beans validate method, since this belongs in the data object (or controller/service tier), so you should move that into the action class or data object classes, and then you can use the database to update and retrived

Re: DB hit from ActionForm Validate method

2002-09-06 Thread Ted Husted
The best thing is to think of the ActionForm as a data transfer object. As such, it shouldn't be accessing the data service itself, but simply carrying the data for others to use. The validate method is an apology to the web tier. The standard HTML controls will accept any String valu

Re: DB hit from ActionForm Validate method

2002-09-06 Thread Michael Lee
hope this helps, Mike - Original Message - From: "Cohan, Sean" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Friday, September 06, 2002 9:19 AM Subject: DB hit from ActionForm Validate method > We need to i

Re: DB hit from ActionForm Validate method

2002-09-06 Thread Brian Hickey
Sean, -- My question is whether it is acceptable or common practice to > access the DB from the validate method or should DB access only be done in > the LogonAction class (which means I'd move the perform functionality to the > LogonAction class)? -- IMHO, the answer is:

RE: DB hit from ActionForm Validate method

2002-09-06 Thread Galbreath, Mark
: 'Struts Users Mailing List' Subject: DB hit from ActionForm Validate method We need to implement '3 strikes and your out' functionality to our logon process. If the user is unsuccessful after 3 logon attempts, we disable their account. I put some of the user id / password

DB hit from ActionForm Validate method

2002-09-06 Thread Cohan, Sean
We need to implement '3 strikes and your out' functionality to our logon process. If the user is unsuccessful after 3 logon attempts, we disable their account. I put some of the user id / password functionality in the validate method of the LogonForm class. However, in between each

RE: How to add an attribute to the request in the validate() method?

2002-06-16 Thread Andrew Hill
11:21 To: Struts Users Mailing List Subject: Re: How to add an attribute to the request in the validate() method? > I´m trying to add an parameter in the validate method in a form bean to the > request like > request.setAttribute("id", commentID); As the name indicates, s

Re: How to add an attribute to the request in the validate() method?

2002-06-15 Thread Vincent Aumont
> I´m trying to add an parameter in the validate method in a form bean to the > request like > request.setAttribute("id", commentID); As the name indicates, setAttribute sets an attribute, not a parameter. A possible solution would be to define a hidden field in your form.

How to add an attribute to the request in the validate() method?

2002-06-15 Thread @Basebeans.com
Subject: How to add an attribute to the request in the validate() method? From: "Kriss" <[EMAIL PROTECTED]> === Hi all, I´m trying to add an parameter in the validate method in a form bean to the request like request.setAttribute("id", commentID); Unfortunately, t

Re: DynaActionForm and validate method

2002-06-07 Thread Rick Reumann
On Friday, June 7, 2002, 4:17:13 PM, Ryan wrote: RN> I created this form bean that extends DynaActionForm and just has RN> the validate method. In the struts-config.xml file I created the RN> form properties. You don't need to code a bean using the DynaActionForm. The Dyna

DynaActionForm and validate method

2002-06-07 Thread Ryan Norman
Hi, I am Norman. I have a screen (let us say login screen). I want the form properties to be defined dynamically (instead of writing the gets and sets) and still be able to validate. I created this form bean that extends DynaActionForm and just has the validate method. In the struts

Re: Error in overiding the validate method of ActionForm

2002-04-01 Thread Sanjay Choudhary
essage - > From: "Sanjay Choudhary" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" > <[EMAIL PROTECTED]> > Sent: Tuesday, April 02, 2002 8:43 AM > Subject: Error in overiding the validate method of > ActionForm > > > &

Re: Error in overiding the validate method of ActionForm

2002-04-01 Thread Slava_L
But, have u specified such attrib. like "input = " - Original Message - From: "Sanjay Choudhary" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, April 02, 2002 8:43 AM Subject: Error in overiding

Error in overiding the validate method of ActionForm

2002-04-01 Thread Sanjay Choudhary
e valdiate method > > ActionErrors errors > if (b.name == null){ > errors = = new ActionErrors(); > errors.add("b.name",new ActionError("Name cannot > be > blank")); > } > return errors; > > > When I put the validate method in my be

Error in overiding the validate method of ActionForm

2002-04-01 Thread Sanjay Choudhary
ActionErrors(); errors.add("b.name",new ActionError("Name cannot be blank")); } return errors; When I put the validate method in my bean I get error No input attribute for mapping path /delegatordelegatename (This is the Action mapping name). without the validate method

Re: Design question about ActionForm's validate method

2002-02-08 Thread Jonathan Gibbons
iling List <[EMAIL PROTECTED]> cc: Subject: Re: Design question about ActionForm's validate method In 1.0.x, it is often suggested that each link at least be represented by an ActionForward. This centralizes control over the hyperlinks in the Struts Config, which yields a number of be

RE: Design question about ActionForm's validate method

2002-02-07 Thread Alex Paransky
turned to foo.jsp and not foo.do. Is there a way to fix this problem? Thanks. -AP_ http://www.alexparansky.com -Original Message- From: Sean Willson [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 11:23 AM To: Struts Users Mailing List Subject: Re: Design question about ActionFo

Re: Design question about ActionForm's validate method

2002-02-07 Thread Sean Willson
RE: Design question about ActionForm's validate method The process we followed is very simular to what Ted suggested but depends on how you are approaching the construction of your actions. If you have the ability to write a collection of objects that handle storing and retreiving

Re: Design question about ActionForm's validate method

2002-02-07 Thread Ted Husted
ess.form and > Address.view are ambiguous. > > Any suggestion on naming conventions? > > Thanks. > -AP_ > http://www.alexparansky.com > > -Original Message- > From: Ted Husted [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 06, 2002 3:47 PM > To: Strut

RE: Design question about ActionForm's validate method

2002-02-06 Thread Alex Paransky
List Subject: Re: Design question about ActionForm's validate method In 1.0.x, it is often suggested that each link at least be represented by an ActionForward. This centralizes control over the hyperlinks in the Struts Config, which yields a number of benefits. In Struts 1.1, now the Ni

Re: Design question about ActionForm's validate method

2002-02-06 Thread Ted Husted
me light as to why > this is preferred? > > Thanks. > > -AP_ > http://www.alexparansky.com > > -Original Message- > From: Ted Husted [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, February 05, 2002 2:02 PM > To: Struts Users Mailing List > Subject: Re:

RE: Design question about ActionForm's validate method

2002-02-06 Thread Greg Hess
Subject: Re: Design question about ActionForm's validate method RE: Design question about ActionForm's validate methodFor reference I wanted to share how we are using the action framework in our web application. Every single call to every single view on our web site goes through Struts.

Re: Design question about ActionForm's validate method

2002-02-06 Thread Sean Willson
Read To: Struts Users Mailing List Sent: Tuesday, February 05, 2002 11:59 AM Subject: RE: Design question about ActionForm's validate method I'm fairly new to struts (well, about 24 hours actually) and this message touches on a concept that I've having trouble grasping. Are you sa

RE: Design question about ActionForm's validate method

2002-02-06 Thread Jonathan Gibbons
"Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> cc: Subject: RE: Design question about ActionForm's validate method Matt, I also disagree that you should only use actions when submitting a form. I als

RE: Design question about ActionForm's validate method

2002-02-05 Thread Alex Paransky
, February 05, 2002 2:02 PM To: Struts Users Mailing List Subject: Re: Design question about ActionForm's validate method The best practice now is to use ActionMappings for everything, so that the reqeust passes through the controller. This buys you several important capabilities that b

RE: RE: Design question about ActionForm's validate method

2002-02-05 Thread ykphuah
neccessary, for SaveAction, then we need validation. CHeers, Yee Keat - Original Message - From: "Robert Scaduto" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Feb 6, 2002 2:31:19 AM GMT+08:00 Subject: RE: Design question ab

Re: Design question about ActionForm's validate method

2002-02-05 Thread Ted Husted
I've stumbled across a subtle problem/design question that I don't see > mentioned in the documentation. > > The ActionForm's validate method can be configured to verify form data > from a page and generate error messages which may then be displayed on > the page fo

RE: Design question about ActionForm's validate method

2002-02-05 Thread Greg Hess
Mailing List Subject: Re: Design question about ActionForm's validate method You get a zero length string. Sid dderry wrote: > What if your user then hits the Submit button without populating any of the > form fields? > > - Original Message - > From: "Sid

Re: Design question about ActionForm's validate method

2002-02-05 Thread dderry
True, so I guess the null test will work. - Original Message - From: "Sid Stuart" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, February 05, 2002 2:55 PM Subject: Re: Design question about ActionForm's vali

Re: Design question about ActionForm's validate method

2002-02-05 Thread Sid Stuart
lt;[EMAIL PROTECTED]> > Sent: Tuesday, February 05, 2002 2:06 PM > Subject: Re: Design question about ActionForm's validate method > > > Hi, > > > > My friend, Lee Crawford, just pointed out to me that the fields of the > > ActionForm will be null i

Re: Design question about ActionForm's validate method

2002-02-05 Thread dderry
bject: Re: Design question about ActionForm's validate method > Hi, > > My friend, Lee Crawford, just pointed out to me that the fields of the > ActionForm will be null if the validate method is called before the form is > submitted, but will be non-null afterwards. This provides a qui

Re: Design question about ActionForm's validate method

2002-02-05 Thread Sid Stuart
Hi, My friend, Lee Crawford, just pointed out to me that the fields of the ActionForm will be null if the validate method is called before the form is submitted, but will be non-null afterwards. This provides a quick and simple test that works for JSP called pages and for Action called pages

RE: Design question about ActionForm's validate method

2002-02-05 Thread Robert Scaduto
]] Sent: Tuesday, February 05, 2002 12:59 PM To: Struts Users Mailing List Subject: RE: Design question about ActionForm's validate method I'm fairly new to struts (well, about 24 hours actually) and this message touches on a concept that I've having trouble grasping. Are you saying

RE: Design question about ActionForm's validate method

2002-02-05 Thread Matt Read
2002 17:44 To: Struts Users Mailing List Subject: Re: Design question about ActionForm's validate method I made this same 'mistake'. Actions MUST only be called when a form is submitted. Never to generate the JSP. Thats why they are called actions. Or two put it another way, you d

Re: Design question about ActionForm's validate method

2002-02-05 Thread Jonathan Gibbons
4 PST Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To: Struts Users Mailing List <[EMAIL PROTECTED]> cc: Subject: Design question about ActionForm's validate method Hi, I've stumbled across a subtle problem/design question that I don&#x

RE: Design question about ActionForm's validate method

2002-02-05 Thread Robert Nocera
vision, we'll do the rest." -Original Message- From: Sid Stuart [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 05, 2002 12:25 PM To: Struts Users Mailing List Subject: Design question about ActionForm's validate method Hi, I've stumbled across a subtle problem/design question th

Design question about ActionForm's validate method

2002-02-05 Thread Sid Stuart
Hi, I've stumbled across a subtle problem/design question that I don't see mentioned in the documentation. The ActionForm's validate method can be configured to verify form data from a page and generate error messages which may then be displayed on the page for the user to see.

Re: returning to the correct page when the validate() method returns errors.

2001-11-20 Thread emmanuel.boudrant
have a situation where > multiple jsps pages use > the same ActionForm. > > As I understand it, when the Form's validate() > method returns an error, > then the ActionServlet forwards control to the > "input" page where "input" > is the input specif

returning to the correct page when the validate() method returns errors.

2001-11-20 Thread Jason . Gola
I'm using Struts 1.0 and I have a situation where multiple jsps pages use the same ActionForm. As I understand it, when the Form's validate() method returns an error, then the ActionServlet forwards control to the "input" page where "input" is the input specified

Re: validate() method and session timeout

2001-11-13 Thread Rakesh
Hi Andras, check the struts-example for app.tld.. and the associated . --Rakesh - Original Message - From: "Andras Balogh" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, November 13, 2001 4:18 PM Subject: validate() method and session timeout

RE: validate() method and session timeout

2001-11-13 Thread Jon.Ridgway
request is processed and automatically redirect them to the logon page when it was appropriate. Jon. -Original Message- From: Andras Balogh [mailto:[EMAIL PROTECTED]] Sent: 13 November 2001 10:48 To: [EMAIL PROTECTED] Subject: validate() method and session timeout Hi, I am using stru

validate() method and session timeout

2001-11-13 Thread Andras Balogh
i am forwarding to a login.jsp page. Now i have a form (form.jsp) and the asociated ActionForm class. This class has a validate method for checking emtpy fields etc. Now here is the following scenario: The user logs in and he goes to this form page. For some reason he waits and the session time

How to forward from within an ActionForm validate method

2001-08-07 Thread Scott Ryan
I have been wracking my brain to remember how to do this but no luck so hopefully someone can help. I am trying to figure out how to forward to a jsp page or .do from within the ActionForm validate method. If for example during my validation I encounter a system error I want to redirect the

Re: problem calliung validate() method in ActionForm

2001-07-27 Thread yuriy
It may sound strange but try to change validate attribute from "true" to "false". Best of luck, Yuriy Zubarev --- BinhMinh Nguyen <[EMAIL PROTECTED]> wrote at 27 Jul 13:21 : > Hi,> > I have a problem calling the validate(...) method from> >

problem calliung validate() method in ActionForm

2001-07-27 Thread BinhMinh Nguyen
Hi, I have a problem calling the validate(...) method from the ActionForm: this is what I have done: 1- implement the validate() method in ActionForm, 2- in struts-config.xml, set the validate attribute to true for the action-mapping. But the method is not called when I clicked one of the

RE: Use of Mapping in ActionForm's validate() method

2001-04-11 Thread Cook, Levi
1, 2001 2:33 PM To: [EMAIL PROTECTED] Subject: Use of Mapping in ActionForm's validate() method Hi! All Can anybody provide me with a use for mapping parameter in validate() method of ActionForm? If u have used this parameter for something please let me know. T

  1   2   >