You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Antonio Petrelli (JIRA)" <ji...@apache.org> on 2007/09/14 21:30:35 UTC
[jira] Commented: (STR-1626) DefinitionDispatcherAction does not
recegnize anchor correctly
[ https://issues.apache.org/struts/browse/STR-1626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42196 ]
Antonio Petrelli commented on STR-1626:
---------------------------------------
What happens if you change it to:
/screen.do#mysection?def=mypage
> DefinitionDispatcherAction does not recegnize anchor correctly
> ---------------------------------------------------------------
>
> Key: STR-1626
> URL: https://issues.apache.org/struts/browse/STR-1626
> Project: Struts 1
> Issue Type: Improvement
> Components: Tiles 1 Plugin
> Affects Versions: 1.1.0
> Environment: Operating System: other
> Platform: PC
> Reporter: Quande Ren
> Assignee: Struts Developers
> Priority: Minor
> Fix For: Future
>
>
> 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&a=a#mysection"
> (I have to convert the & to & here,
> because the info will goes to a xml file)
> Then the DefinitionDispatcherAction will correctly find the definition.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.