I had this issue as well but you can use the built-in ForwardAction
class, then using the global forward to map to an action that
redirects to your tiles definition.
e.g.:
<global-forwards>
<forward name="homePage" path="welcome.do"/>
</global-forwards>
<action path="/welcome"
type="org.apache.struts.actions.ForwardAction"
scope="request"
validate="false"
parameter="welcomePage">
</action>
Yannick
On 4/13/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote:
2007/4/13, Suman Maity <[EMAIL PROTECTED]>:
> Hi, we know that we can use a tiles definition as path of the forward tag
> under action tag in struts config file
> It looks like <action path=/....
> ......>
> <forward name="homePage" path="welcomePage"
> redirect="true"/>
> </action>
You cannot redirect to a Tiles definition, at least not directly.
Just as an information in Tiles 2 there is a "TilesDispatchServlet"
that lets you forward (and redirect) to an URL that renders a Tiles
definition:
http://tiles.apache.org/framework/apidocs/org/apache/tiles/web/TilesDispatchServlet.html
HTH
Antonio
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]