struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Evans (JIRA)" <j...@apache.org>
Subject [jira] Closed: (STR-503) Add forward attribute to FormTag to allow submision to a global forward
Date Tue, 02 May 2006 04:12:19 GMT
     [ http://issues.apache.org/struts/browse/STR-503?page=all ]
     
David Evans closed STR-503:
---------------------------

    Resolution: Incomplete

> Add forward attribute to FormTag to allow submision to a global forward
> -----------------------------------------------------------------------
>
>          Key: STR-503
>          URL: http://issues.apache.org/struts/browse/STR-503
>      Project: Struts Action 1
>         Type: Improvement

>   Components: Taglibs
>     Versions: Nightly Build
>  Environment: Operating System: All
> Platform: All
>     Reporter: Martin Rose
>     Assignee: Ted Husted
>     Priority: Minor
>  Attachments: FormTag-Forward-Multi.diff, formTag.forward.diff
>
> One of the great things about struts is that it allows the developer to 
> externalize resource paths into
> the struts-config.xml.  The web components lookup the appropriate mappings of 
> logical names to web path
> names when needed.  This is accomplished through both global/local forward 
> definitions. One of the locations 
> which this can be is not currently fully generalized is in the form tag.  
> Currently a developer is required 
> to submit a form directly to an action mapping.  We found that a more ideal 
> situation was to have a form 
> submit to a global forward which then looked up the action mapping (usually, 
> but not neccessarily) it maps to.
> So instead of code like this:
> <form action="/some/webapp/path/login.do" ...>
> You have code like this:
> <form forward="login">
> This allowed us to further keep all of our context sensitive URL's out of the 
> jsp's and in the struts-config.xml, so if
> we ever needed (which we did) to change webapp url's or redploy under a 
> different webapp url the changes were localized 
> to struts-config.xml

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message