You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ra...@ffic.com on 2002/06/03 19:13:24 UTC

Using redirect="true" with tiles component

I have the following entry in my config

<action path="/login" type="com.ffic.training.LoginAction" name="logonForm"
scope="session" input="/Login.jsp">
      <forward name="success" path="welcome.page" redirect="true"/>
</action>

My tiles definition xml is as follows

<definition name="welcome.page" path="/TilesTemplate.jsp">
    <put name="menu" content="/Menu.jsp"/>
    <put name="body" content="/WelcomeContent.jsp"/>
</definition>


Without the redirect="true", everything works fine, but when I use it, I
get the following error


     Error 404
     An error has occured while processing request:http://localhost:8080/app/welcome.page
     Message: File not found: //welcome.page


If I change the path to a regular jsp path (ie path=/Welcome.jsp) things work fine.

Can anyone help me on this? Thanks in advance.
**********************************************************************
Please Note:
The information in this E-mail message, and any files transmitted
with it, is confidential and may be legally privileged.  It is
intended only for the use of the individual(s) named above.  If you
are the intended recipient, be aware that your use of any confidential
or personal information may be restricted by state and federal
privacy laws.  If you, the reader of this message, are not the
intended recipient, you are hereby notified that you should not
further disseminate, distribute, or forward this E-mail message.
If you have received this E-mail in error, please notify the sender
and delete the material from any computer.  Thank you.
**********************************************************************




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Using redirect="true" with tiles component

Posted by Cedric Dumoulin <ce...@lifl.fr>.
  Hello,

  You can't use redirect="true" with a tiles definition's name. Tiles definition's names are
logical names, not URL, so it is not possible to redirect to a definition name.  In the same
way, it is not possible to use directly a definition name in a link.

   Hope this help,

       Cedric

Raffy_Lata@ffic.com wrote:

> I have the following entry in my config
>
> <action path="/login" type="com.ffic.training.LoginAction" name="logonForm"
> scope="session" input="/Login.jsp">
>       <forward name="success" path="welcome.page" redirect="true"/>
> </action>
>
> My tiles definition xml is as follows
>
> <definition name="welcome.page" path="/TilesTemplate.jsp">
>     <put name="menu" content="/Menu.jsp"/>
>     <put name="body" content="/WelcomeContent.jsp"/>
> </definition>
>
> Without the redirect="true", everything works fine, but when I use it, I
> get the following error
>
>      Error 404
>      An error has occured while processing request:http://localhost:8080/app/welcome.page
>      Message: File not found: //welcome.page
>
> If I change the path to a regular jsp path (ie path=/Welcome.jsp) things work fine.
>
> Can anyone help me on this? Thanks in advance.
> **********************************************************************
> Please Note:
> The information in this E-mail message, and any files transmitted
> with it, is confidential and may be legally privileged.  It is
> intended only for the use of the individual(s) named above.  If you
> are the intended recipient, be aware that your use of any confidential
> or personal information may be restricted by state and federal
> privacy laws.  If you, the reader of this message, are not the
> intended recipient, you are hereby notified that you should not
> further disseminate, distribute, or forward this E-mail message.
> If you have received this E-mail in error, please notify the sender
> and delete the material from any computer.  Thank you.
> **********************************************************************
>
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>