You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Paul Benedict (JIRA)" <ji...@apache.org> on 2006/11/26 07:05:57 UTC
[jira] Updated: (STR-2363) [docs] document that landing on target
anchors when coming from struts-config.xml 'forward path="/myAction.do"'
declaration inside an action element only works if redirect="true"
[ http://issues.apache.org/struts/browse/STR-2363?page=all ]
Paul Benedict updated STR-2363:
-------------------------------
Bugzilla Id: (was: 33547)
Component/s: Website
(was: Unknown)
Assignee: (was: Struts Developers)
> [docs] document that landing on target anchors when coming from struts-config.xml 'forward path="/myAction.do"' declaration inside an action element only works if redirect="true"
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: STR-2363
> URL: http://issues.apache.org/struts/browse/STR-2363
> Project: Struts 1
> Issue Type: Improvement
> Components: Website
> Affects Versions: 1.2.4
> Environment: Operating System: All
> Platform: PC
> Reporter: Ralf Hauser
> Priority: Minor
>
> <!ELEMENT forward (icon?, display-name?, description?, set-property*)>
> ...
> <!ATTLIST forward name CDATA #REQUIRED>
> <!ATTLIST forward path %RequestPath; #REQUIRED>
> there is no "anchor" attribute.
> Please enhance the documentation to say how one can land after an action on a
> target anchor inside the landing jsp page? Or if that is not possible, enhance
> the dtd and implementation correspondingly.
> The same IS possible when referencing an action form a html:link
> <html:link page="/loadUser.do#bottom">Link</html:link>
> and
> <html:link page="/loadUser.do" anchor="bottom">Link</html:link>
> both do work.
> Similar to STR-1608, im struts-config.xml
> <action path="/go" type="tld.myDom.myApp.GoToAction">
> <forward name="goBottom" path="/loadUser.do#bottom" />
> </action>
> basically causes a 404 error, but as by the description there,
> <action path="/go" type="tld.myDom.myApp.GoToAction">
> <forward name="goBottom" path="/loadUser.do?def=mypage&a=a#bottom" />
> </action>
> still does not land at the target anchor, but at least, the navigation no longer
> breaks down.
> Same with the workaround explained in STR-1626 - doesn't work, but no longer
> breaks.
> perhaps
> StringBuffer path = new StringBuffer(64);
> path.append(actionMapping.findForward("success").getPath());
> path.append("#bottom");
> return new ActionForward(path.toString());
> works, but why bother the action with such navigation details?
--
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