Global forwards don't support Tiles definitions?

2006-05-31 Thread Scott Van Wart
I have a tiles definition (tiles-defs.xml), and a global forward (struts-config.xml), When the forward is triggered with this, the browser requests host//page.main. This gives a Tomcat "resource unavailable screen". HTML links don't seem to work either. When I try somet

Re: Global forwards don't support Tiles definitions?

2006-06-01 Thread Shervin Asgari
Have you tried main.page instead of page.main? I don't know if this is the reason, but I have main.page and not other way around. Shervin Scott Van Wart wrote: I have a tiles definition (tiles-defs.xml), and a global forward (struts-config.xml), When the forward is triggered

Re: Global forwards don't support Tiles definitions?

2006-06-01 Thread Shervin Asgari
Have you tried main.page instead of page.main? I don't know if this is the reason, but I have main.page and not other way around. Shervin Scott Van Wart wrote: I have a tiles definition (tiles-defs.xml), and a global forward (struts-config.xml), When the forward is triggered

Re: Global forwards don't support Tiles definitions?

2006-06-01 Thread Antonio Petrelli
Scott Van Wart ha scritto: http://struts.apache.org/struts-action/struts-taglib/tlddoc/logic/forward.html *Note*: forwarding to Tiles definitions is not supported from this tag. You should forward to them from an Action subclass. Main Page http://struts.apache.org/struts-action/struts-

Re: Global forwards don't support Tiles definitions?

2006-06-01 Thread M.Liang Liu
How about forwarding to an action path using ForwardAction redirect to your tiles page? I just shoot in the dark.

Re: Global forwards don't support Tiles definitions?

2006-06-01 Thread Scott Van Wart
OK I went with the following workaround. I create a form bean to handle the name of the "global" forward: public class ForwardForm extends ActionForm { private String name; public ForwardForm() { } public String getName() { return this.name; } public void setName( String name ) { this.name

Re: Global forwards don't support Tiles definitions?

2006-06-02 Thread Lixin Chu
not sure if this is what you want but this one should work: global forward is defined as, fot example: the ".authorizationError" is defined as a Tile: in your action class, you can do this: return mapping.findForward("authorizationError");