You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by James Turner <tu...@blackbear.com> on 2002/12/24 03:37:39 UTC
[PROPOSED] html:link should have an "action=" option
I find I write a lot of code that uses an intermediate action to link
between two web pages (this is good Struts policy in general) However,
since the html:link tag has a forward= but no action=, I have to use
page= and supply a URI with the ".do" extension at the end, rather than
being about to use action= as I would with an html:form. What do folks
think about adding action= to html:link?
James
_________________________________________
James
ICQ#: 8239923
More ways to contact me: http://wwp.icq.com/8239923
See more about me: http://web.icq.com/whitepages/about_me?Uin=8239923
_________________________________________
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: [PROPOSED] html:link should have an "action=" option
Posted by "Peter A. Pilgrim" <pe...@xenonsoft.demon.co.uk>.
James Turner wrote:
> I find I write a lot of code that uses an intermediate action to link
> between two web pages (this is good Struts policy in general) However,
> since the html:link tag has a forward= but no action=, I have to use
> page= and supply a URI with the ".do" extension at the end, rather than
> being about to use action= as I would with an html:form. What do folks
> think about adding action= to html:link?
I dont think this a problem. Normally you want to provide servlet request
parameters such also.
--
Peter Pilgrim
ServerSide Java Specialist
My on-line resume and for interview videos about myself, J2EE
Open Source, Struts and Expresso.
||
\\===> `` http://www.xenonsoft.demon.co.uk/no-it-striker.html ''
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: [PROPOSED] html:link should have an "action=" option
Posted by Ted Husted <hu...@apache.org>.
+1
It's already in as ticket #13645
Personally, I think we should add this to the list on the release
plan. It should have been int he API to begin with (like using
ActionForward for inputs).
My latest project uses Velocity templates, and the tools support
doing this, so I am =:). I know find that as a result of using
Actions in links, I no longer need to use as many ActionForwards,
and the entire architechture is much cleaner and leaner.
What happens is that instead of seeing ActionForwards as what we
use to encapsulate links, you can come to view ActionMappings as
what we use to ecapsulate forms -and- links. Since we can now
enter a forward from an ActionMapping, everything else is already
there. (And links are just streamlined GET forms anyway.)
ActionForwards then become a workflow construct -- the outcome of
an Action object, and nothing else. I think this was always the
underlying intent of the architechture, but the missing html:link
property clouded the issue.
-Ted.
12/23/2002 9:37:39 PM, James Turner <tu...@blackbear.com> wrote:
>I find I write a lot of code that uses an intermediate action to
>link between two web pages (this is good Struts policy in
>general) However, since the html:link tag has a forward= but no
>action=, I have to use page= and supply a URI with the ".do"
>extension at the end, rather than being about to use action= as I
>would with an html:form. What do folks think about adding
>action= to html:link?
>
>James
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>