struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 7276] - html:form and html:link tags need to be able to reference actions outside current sub application
Date Thu, 04 Jul 2002 02:15:00 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7276>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7276

html:form and html:link tags need to be able to reference actions outside current sub application

craig.mcclanahan@sun.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX



------- Additional Comments From craig.mcclanahan@sun.com  2002-07-04 02:14 -------
For <html:link>, in additon to Joe's suggestion of using "href", you can also
configure the contextRelative property of a <forward> to skip the usual Struts
action of prepending the subapp prefix.

For <html:link>, you can also forward to an Action that is implemented with
org.apache.struts.actions.SwitchAction, which is the formal mechanism for a
UI-initiated switch between subapps.

For <html:form>, I believe the better way to submit to an action in a different
subapplication is something like this (in an Action in the "from" subapp):
* Call RequestUtils.selectApplication() to select the "to" subapp you want.
* Return an ActionForward from this new subapp that points at a page in the
  "to" subapp that creates the form you want.
* The <html:form> on the new page will automatically be pointing at the
  "to" subapp.

Doing things this way avoids creating deep dependencies between subapps (i.e. a
form in one subapp and an action in another would depend on each other), which
would make maintenance of different subapps by different groups (a very common
scenario) more brittle.

The WONTFIX part of the resolution of this bug is about changes to <html:form>
-- <html:link> already seems to have the flexibility you need.

--
To unsubscribe, e-mail:   <mailto:struts-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-dev-help@jakarta.apache.org>


Mime
View raw message