You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2005/02/13 21:04:09 UTC

DO NOT REPLY [Bug 33547] New: - enable to land on target anchors when coming from struts-config.xml "forward" declaration inside an action element

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33547>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33547

           Summary: enable to land on target anchors when coming from
                    struts-config.xml "forward" declaration inside an action
                    element
           Product: Struts
           Version: 1.2.4
          Platform: PC
               URL: http://struts.apache.org/dtds/struts-config_1_2.dtd
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Unknown
        AssignedTo: dev@struts.apache.org
        ReportedBy: hauser@acm.org


<!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 Bug 21614, 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&amp;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 Bug 21896 - 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?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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