You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ale bra <br...@hotmail.com> on 2003/07/10 16:47:41 UTC

DefinitionDispatcherAction problem

Hi all,
I've got problems with DefinitionDispatcherAction taking a definition as a 
parameter.
I have a global forward which redirects to an action of type 
DefinitionDispatcherAction :

<global-forwards>
    <forward name="login" path="/LinkToMain.do?def=MyLink"/>
</global-forwards>

<action-mappings>
    <action path="/LinkToMain" 
type="org.apache.struts.tiles.actions.DefinitionDispatcherAction" 
parameter="def">
      <forward name="error" path="/Login"/>
    </action>
...
</action-mappings>

The definition "MyLink" is in tiles-defs :
...
    <definition name="MyLink" extends=".mainLayout">
        <put name="title"  value="Another Title" />
        <put name="body"   value="/EmployeeList.do" />
    </definition>
...

I've a link on my menu.jsp pointing to to global-forward :

<html:link forward="login" > ITEM
</html:link>

I thought that these settings should have given me the result to have the 
definition "MyLink" displayed in the browser.
Well, I don't get any error but the result is an EMPTY PAGE!

Where I'm wrong??

Thanks
Alex


___________________________________________________________
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.

_________________________________________________________________
MSN Foto: condividi, ritocca e stampa le tue foto online 
http://photos.msn.it


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


Re: DefinitionDispatcherAction problem

Posted by Sandeep Takhar <sa...@yahoo.com>.
sorry can't help much, but I looked at the code and it
didn't make sense to me and I'm probably missing
something.

At the end of the method it says "..[forward to
success, but this isn't used].."

the one second glance seems to indicate that it would
be....??

sandeep
--- ale bra <br...@hotmail.com> wrote:
> Hi all,
> I've got problems with DefinitionDispatcherAction
> taking a definition as a 
> parameter.
> I have a global forward which redirects to an action
> of type 
> DefinitionDispatcherAction :
> 
> <global-forwards>
>     <forward name="login"
> path="/LinkToMain.do?def=MyLink"/>
> </global-forwards>
> 
> <action-mappings>
>     <action path="/LinkToMain" 
>
type="org.apache.struts.tiles.actions.DefinitionDispatcherAction"
> 
> parameter="def">
>       <forward name="error" path="/Login"/>
>     </action>
> ...
> </action-mappings>
> 
> The definition "MyLink" is in tiles-defs :
> ...
>     <definition name="MyLink" extends=".mainLayout">
>         <put name="title"  value="Another Title" />
>         <put name="body"   value="/EmployeeList.do"
> />
>     </definition>
> ...
> 
> I've a link on my menu.jsp pointing to to
> global-forward :
> 
> <html:link forward="login" > ITEM
> </html:link>
> 
> I thought that these settings should have given me
> the result to have the 
> definition "MyLink" displayed in the browser.
> Well, I don't get any error but the result is an
> EMPTY PAGE!
> 
> Where I'm wrong??
> 
> Thanks
> Alex
> 
> 
>
___________________________________________________________
> Sent by ePrompter, the premier email notification
> software.
> Free download at http://www.ePrompter.com.
> 
>
_________________________________________________________________
> MSN Foto: condividi, ritocca e stampa le tue foto
> online 
> http://photos.msn.it
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> struts-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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