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
://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
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
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
[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
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
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
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
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
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...
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
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
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
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,
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
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
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
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
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.
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
, 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
21 matches
Mail list logo