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