[
https://issues.apache.org/struts/browse/STR-2363?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul Benedict updated STR-2363:
-------------------------------
Priority: Trivial (was: Minor)
Fix Version/s: 1.4.0
Assignee: Paul Benedict
> [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: https://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
> Assignee: Paul Benedict
> Priority: Trivial
> Fix For: 1.4.0
>
>
> <!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.
-
You can reply to this email to add a comment to the issue online.