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
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. T

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
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 Su

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
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 for

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... Al