Re: Design question about ActionForm's validate method

2002-02-08 Thread Jonathan Gibbons
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 benefits. In Struts 1.1, now

Re: Design question about ActionForm's validate method

2002-02-07 Thread Ted Husted
://www.alexparansky.com -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 06, 2002 3:47 PM To: Struts Users Mailing List Subject: Re: Design question about ActionForm's validate method In 1.0.x, it is often suggested that each link at least

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 data

RE: Design question about ActionForm's validate method

2002-02-07 Thread Alex Paransky
Users Mailing List Subject: Re: Design question about ActionForm's validate method 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

RE: Design question about ActionForm's validate method

2002-02-06 Thread Jonathan Gibbons
[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 also believe that in most cases you should never forward a request directly

Re: Design question about ActionForm's validate method

2002-02-06 Thread Sean Willson
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 saying that your site should never allow the user

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 Ted Husted
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: Design question about ActionForm's validate method The best

RE: Design question about ActionForm's validate method

2002-02-06 Thread Alex Paransky
Husted [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 06, 2002 3:47 PM To: Struts Users Mailing 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

RE: Design question about ActionForm's validate method

2002-02-05 Thread Robert Nocera
Direct the user to an action that isn't the action associated with the page in question, even if all that action does is forward to the JSP page. Generally the action's associated with a JSP page get called from that JSP page. ActionA forwards to B.JSP, B.JSP submits to ActionB and so on...

Re: Design question about ActionForm's validate method

2002-02-05 Thread Jonathan Gibbons
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 do need several URL's a) URL to JSP on a GET b) URL to action the POST The easiert way to do it is to have all

RE: Design question about ActionForm's validate method

2002-02-05 Thread Matt Read
to retrieve the correct data. 6. /pages/findClientResults.jsp renders the results from the database. Matt. -Original Message- From: Jonathan Gibbons [mailto:[EMAIL PROTECTED]] Sent: 05 February 2002 17:44 To: Struts Users Mailing List Subject: Re: Design question about ActionForm's

RE: Design question about ActionForm's validate method

2002-02-05 Thread Robert Scaduto
easier to replace the ForwardAction to a custom action. It sounds to me like you are on the right track. -Rob -Original Message- From: Matt Read [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 05, 2002 12:59 PM To: Struts Users Mailing List Subject: RE: Design question about ActionForm's

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 dderry
What if your user then hits the Submit button without populating any of the form fields? - Original Message - From: Sid Stuart [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, February 05, 2002 2:06 PM Subject: Re: Design question about ActionForm's

Re: Design question about ActionForm's validate method

2002-02-05 Thread Sid Stuart
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 if the validate method is called before the form is submitted, but will be non-null afterwards. This provides a quick

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 validate method You get a zero length string

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 Stuart [EMAIL PROTECTED] To: Struts

Re: Design question about ActionForm's validate method

2002-02-05 Thread Ted Husted
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 become important as applications grow. Not the least of which is the new support for multiple applications in the Nightly Build.

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

2002-02-05 Thread ykphuah
is 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 about ActionForm's validate method Matt, I

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 become