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=21896>.
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=21896

DefinitionDispatcherAction  does not recegnize anchor correctly

           Summary: DefinitionDispatcherAction  does not recegnize anchor
                    correctly
           Product: Struts
           Version: 1.1 Final
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Tiles framework
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I use DefinitionDispatcherAction to link directly to a tiles definition name:

 <html:link action="/screen.do?def=mypage">
      The link
 </html:link>

It works.

Now I change this link as:
 <html:link action="/screen.do?def=mypage#mysection">
      The link
 </html:link>

I can successfully use this link to:
   1. go to the definition page,
   2. go to the specified section(anchor).

Now the problem is I want to use the DefinitionDispatcherAction as chain 
forward in another action like here:(I use xdoclet)

/**
 * @struts.action name="form1" path="/formpath" scope="session"
 * @struts.action-forward 
 *         name="success"
 *         path="/screen.do?def=mypage#mysection"
 *         redirect="true"
 */
public class Form1Action extends Action{

    public ActionForward execute(ActionMapping actionMapping..){
             return actionMapping.findForward("success");
    }
}

Now the DefinitionDispatcherAction can't find the tiles definition 
for "mypage", instead it is trying to search definition of "mypage#mysection"


If I change the action-forward path from 
   path="/client/screen.do?def=mypage#mysection"
To:
   path="/client/screen.do?def=mypage&amp;a=a#mysection"
      (I have to convert the & to &amp; here, 
       because the info will goes to a xml file)

Then the DefinitionDispatcherAction  will correctly find the definition.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to