You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by es...@tiaa-cref.org on 2002/04/08 23:25:22 UTC
tiles question
Hi,
Is it possible to call a tiles layout definition from an action tag in my
struts-config.xml file?
Here's the tag in my struts-config.xml:
<action path="/resources"
forward="site.resources.page"/>
Here's the definition in my tiles-defs.xml:
<definition name="site.resources.page" extends="site.mainLayout" >
<put name="body" value="/tiles/resources.jsp" />
</definition>
When I try to invoke this action forward I get an exception:
java.lang.IllegalArgumentException: Path site.services.page does not start
with a "/" character
The forward tag is expecting a value like '/resources.jsp', not a tiles
layout. Is what I'm trying to do possible?
Thanks,
Eric.
**********************************************************************
This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, please contact sender immediately by reply e-mail and destroy all copies. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited.
TIAA-CREF
**********************************************************************
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: tiles question
Posted by Ingo Bruell <ib...@gmx.de>.
Hi Struts,
etco> Is it possible to call a tiles layout definition from an action tag in my
etco> struts-config.xml file?
etco> Here's the tag in my struts-config.xml:
etco> <action path="/resources"
etco> forward="site.resources.page"/>
etco> Here's the definition in my tiles-defs.xml:
etco> <definition name="site.resources.page" extends="site.mainLayout" >
etco> <put name="body" value="/tiles/resources.jsp" />
etco> </definition>
etco> When I try to invoke this action forward I get an exception:
etco> java.lang.IllegalArgumentException: Path site.services.page does not start
etco> with a "/" character
etco> The forward tag is expecting a value like '/resources.jsp', not a tiles
etco> layout. Is what I'm trying to do possible?
I have the same problem with struts1.1b1. The doc says that it should
be used like you said
so long
Ingo Bruell
---
<ib...@gmx.de>
<In...@epost.de>
<ICQ# 40377720>
Oldenburg PGP-Fingerprint: CB01 AE12 B359 87C4 BF1C 953C 8FE7 C648 169E E5FC
Germany PGP-Public-Key available at pgpkeys.mit.edu
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: tiles question
Posted by Cedric Dumoulin <ce...@lifl.fr>.
Yes it is ;-)
Have you specify to use the appropriate Tiles processor (if struts1.1) or tiles action servlet (struts1.0.x) ?
In struts1.1, add following to your struts-config file :
<!-- Here we specified the tiles processor -->
<controller
processorClass="org.apache.struts.tiles.TilesRequestProcessor">
</controller>
In struts 1.0, specify to use ComponentActionServlet in web.xml. Check documentation or examples.
Other users have already got this problem, check struts archive for "Weird problem with tiles and struts forward".
Hope this help,
Cedric
eschneider@tiaa-cref.org wrote:
> Hi,
>
> Is it possible to call a tiles layout definition from an action tag in my
> struts-config.xml file?
>
> Here's the tag in my struts-config.xml:
>
> <action path="/resources"
> forward="site.resources.page"/>
>
> Here's the definition in my tiles-defs.xml:
>
> <definition name="site.resources.page" extends="site.mainLayout" >
> <put name="body" value="/tiles/resources.jsp" />
> </definition>
>
> When I try to invoke this action forward I get an exception:
>
> java.lang.IllegalArgumentException: Path site.services.page does not start
> with a "/" character
>
> The forward tag is expecting a value like '/resources.jsp', not a tiles
> layout. Is what I'm trying to do possible?
>
> Thanks,
> Eric.
>
> **********************************************************************
> This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, please contact sender immediately by reply e-mail and destroy all copies. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited.
> TIAA-CREF
> **********************************************************************
>
> --
> 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>
Re: tiles question
Posted by Udo Walker <Ud...@abas.de>.
Ok,
thanks. I will try.
Udo
Cedric Dumoulin wrote:
>
> Udo Walker wrote:
>
> > Hi,
> >
> > yes this helped.
> >
> > If I extend TilesRequestProcessor I only have to call the super methods
> > first and then do my stuff?
>
> Yes. But only for methods you overload (like init(...), doInclude(...),
> doForward(...)). Otherwise don't care about them.
>
> Cedric
>
> >
> >
> > Thanks,
> > Udo
> >
> > Cedric Dumoulin wrote:
> > >
> > > You need the TilesRequestProcessor and ActionComponentServlet with Struts1.1.
> > > ActionComponentServlet takes in charge Tiles initialization.
> > > TilesRequestProcessor takes in charge Struts "forward" catching.
> > >
> > > You can have your own request processor extending the Tiles one, allowing
> > > functionalities from both.
> > >
> > > Hope this help,
> > > Cedric
> > >
> > > Udo Walker wrote:
> > >
> > > > Hi,
> > > >
> > > > can I mix
> > > >
> > > > <servlet-class>org.apache.struts.tiles.ActionComponentServlet</servlet-class>
> > > >
> > > > and my own RequestProcessor with Tiles and Struts 1.1?
> > > >
> > > > Do I have the full functionality of Tiles while keeping the
> > > > functionality of my own RequestProcessor?
> > > > Or, questioned the other way round: Do I need the TilesRequestProcessor
> > > > for Struts 1.1?
> > > >
> > > > Thanks,
> > > > Udo.
> > > >
> > > > "Wellie W. Chao" wrote:
> > > > >
> > > > > What version of struts are you using? I'm using 1.1 beta 1, and the forward
> > > > > to tiles definition feature works just fine. My action tags look just like
> > > > > what you specified.
> > > > >
> > > > > You may need to check and make sure you have the proper settings in web.xml.
> > > > > In web.xml, you should have:
> > > > >
> > > > > <servlet-name>action</servlet-name>
> > > > > <servlet-class>org.apache.struts.tiles.ActionComponentServlet</servlet-class
> > > > > >
> > > > >
> > > > > Also, in struts-config.xml, you should have:
> > > > >
> > > > > <controller processorClass="org.apache.struts.tiles.TilesRequestProcessor"
> > > > > nocache="true"/>
> > > > >
> > > > > (You can change the nocache if you want)
> > > > >
> > > > > -----Original Message-----
> > > > > From: eschneider@tiaa-cref.org [mailto:eschneider@tiaa-cref.org]
> > > > > Sent: Monday, April 08, 2002 5:25 PM
> > > > > To: struts-user@jakarta.apache.org
> > > > > Subject: tiles question
> > > > >
> > > > > Hi,
> > > > >
> > > > > Is it possible to call a tiles layout definition from an action tag in my
> > > > > struts-config.xml file?
> > > > >
> > > > > Here's the tag in my struts-config.xml:
> > > > >
> > > > > <action path="/resources"
> > > > > forward="site.resources.page"/>
> > > > >
> > > > > Here's the definition in my tiles-defs.xml:
> > > > >
> > > > > <definition name="site.resources.page" extends="site.mainLayout" >
> > > > > <put name="body" value="/tiles/resources.jsp" />
> > > > > </definition>
> > > > >
> > > > > When I try to invoke this action forward I get an exception:
> > > > >
> > > > > java.lang.IllegalArgumentException: Path site.services.page does not start
> > > > > with a "/" character
> > > > >
> > > > > The forward tag is expecting a value like '/resources.jsp', not a tiles
> > > > > layout. Is what I'm trying to do possible?
> > > > >
> > > > > Thanks,
> > > > > Eric.
> > > > >
> > > > > **********************************************************************
> > > > > This message, including any attachments, contains confidential information
> > > > > intended for a specific individual and purpose, and is protected by law. If
> > > > > you are not the intended recipient, please contact sender immediately by
> > > > > reply e-mail and destroy all copies. You are hereby notified that any
> > > > > disclosure, copying, or distribution of this message, or the taking of any
> > > > > action based on it, is strictly prohibited.
> > > > > TIAA-CREF
> > > > > **********************************************************************
> > > > >
> > > > > --
> > > > > 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>
> > > >
> > > > --
> > > > 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>
> >
> > --
> > 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>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: tiles question
Posted by Cedric Dumoulin <ce...@lifl.fr>.
Udo Walker wrote:
> Hi,
>
> yes this helped.
>
> If I extend TilesRequestProcessor I only have to call the super methods
> first and then do my stuff?
Yes. But only for methods you overload (like init(...), doInclude(...),
doForward(...)). Otherwise don't care about them.
Cedric
>
>
> Thanks,
> Udo
>
> Cedric Dumoulin wrote:
> >
> > You need the TilesRequestProcessor and ActionComponentServlet with Struts1.1.
> > ActionComponentServlet takes in charge Tiles initialization.
> > TilesRequestProcessor takes in charge Struts "forward" catching.
> >
> > You can have your own request processor extending the Tiles one, allowing
> > functionalities from both.
> >
> > Hope this help,
> > Cedric
> >
> > Udo Walker wrote:
> >
> > > Hi,
> > >
> > > can I mix
> > >
> > > <servlet-class>org.apache.struts.tiles.ActionComponentServlet</servlet-class>
> > >
> > > and my own RequestProcessor with Tiles and Struts 1.1?
> > >
> > > Do I have the full functionality of Tiles while keeping the
> > > functionality of my own RequestProcessor?
> > > Or, questioned the other way round: Do I need the TilesRequestProcessor
> > > for Struts 1.1?
> > >
> > > Thanks,
> > > Udo.
> > >
> > > "Wellie W. Chao" wrote:
> > > >
> > > > What version of struts are you using? I'm using 1.1 beta 1, and the forward
> > > > to tiles definition feature works just fine. My action tags look just like
> > > > what you specified.
> > > >
> > > > You may need to check and make sure you have the proper settings in web.xml.
> > > > In web.xml, you should have:
> > > >
> > > > <servlet-name>action</servlet-name>
> > > > <servlet-class>org.apache.struts.tiles.ActionComponentServlet</servlet-class
> > > > >
> > > >
> > > > Also, in struts-config.xml, you should have:
> > > >
> > > > <controller processorClass="org.apache.struts.tiles.TilesRequestProcessor"
> > > > nocache="true"/>
> > > >
> > > > (You can change the nocache if you want)
> > > >
> > > > -----Original Message-----
> > > > From: eschneider@tiaa-cref.org [mailto:eschneider@tiaa-cref.org]
> > > > Sent: Monday, April 08, 2002 5:25 PM
> > > > To: struts-user@jakarta.apache.org
> > > > Subject: tiles question
> > > >
> > > > Hi,
> > > >
> > > > Is it possible to call a tiles layout definition from an action tag in my
> > > > struts-config.xml file?
> > > >
> > > > Here's the tag in my struts-config.xml:
> > > >
> > > > <action path="/resources"
> > > > forward="site.resources.page"/>
> > > >
> > > > Here's the definition in my tiles-defs.xml:
> > > >
> > > > <definition name="site.resources.page" extends="site.mainLayout" >
> > > > <put name="body" value="/tiles/resources.jsp" />
> > > > </definition>
> > > >
> > > > When I try to invoke this action forward I get an exception:
> > > >
> > > > java.lang.IllegalArgumentException: Path site.services.page does not start
> > > > with a "/" character
> > > >
> > > > The forward tag is expecting a value like '/resources.jsp', not a tiles
> > > > layout. Is what I'm trying to do possible?
> > > >
> > > > Thanks,
> > > > Eric.
> > > >
> > > > **********************************************************************
> > > > This message, including any attachments, contains confidential information
> > > > intended for a specific individual and purpose, and is protected by law. If
> > > > you are not the intended recipient, please contact sender immediately by
> > > > reply e-mail and destroy all copies. You are hereby notified that any
> > > > disclosure, copying, or distribution of this message, or the taking of any
> > > > action based on it, is strictly prohibited.
> > > > TIAA-CREF
> > > > **********************************************************************
> > > >
> > > > --
> > > > 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>
> > >
> > > --
> > > 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>
>
> --
> 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>
Re: tiles question
Posted by Udo Walker <Ud...@abas.de>.
Hi,
yes this helped.
If I extend TilesRequestProcessor I only have to call the super methods
first and then do my stuff?
Thanks,
Udo
Cedric Dumoulin wrote:
>
> You need the TilesRequestProcessor and ActionComponentServlet with Struts1.1.
> ActionComponentServlet takes in charge Tiles initialization.
> TilesRequestProcessor takes in charge Struts "forward" catching.
>
> You can have your own request processor extending the Tiles one, allowing
> functionalities from both.
>
> Hope this help,
> Cedric
>
> Udo Walker wrote:
>
> > Hi,
> >
> > can I mix
> >
> > <servlet-class>org.apache.struts.tiles.ActionComponentServlet</servlet-class>
> >
> > and my own RequestProcessor with Tiles and Struts 1.1?
> >
> > Do I have the full functionality of Tiles while keeping the
> > functionality of my own RequestProcessor?
> > Or, questioned the other way round: Do I need the TilesRequestProcessor
> > for Struts 1.1?
> >
> > Thanks,
> > Udo.
> >
> > "Wellie W. Chao" wrote:
> > >
> > > What version of struts are you using? I'm using 1.1 beta 1, and the forward
> > > to tiles definition feature works just fine. My action tags look just like
> > > what you specified.
> > >
> > > You may need to check and make sure you have the proper settings in web.xml.
> > > In web.xml, you should have:
> > >
> > > <servlet-name>action</servlet-name>
> > > <servlet-class>org.apache.struts.tiles.ActionComponentServlet</servlet-class
> > > >
> > >
> > > Also, in struts-config.xml, you should have:
> > >
> > > <controller processorClass="org.apache.struts.tiles.TilesRequestProcessor"
> > > nocache="true"/>
> > >
> > > (You can change the nocache if you want)
> > >
> > > -----Original Message-----
> > > From: eschneider@tiaa-cref.org [mailto:eschneider@tiaa-cref.org]
> > > Sent: Monday, April 08, 2002 5:25 PM
> > > To: struts-user@jakarta.apache.org
> > > Subject: tiles question
> > >
> > > Hi,
> > >
> > > Is it possible to call a tiles layout definition from an action tag in my
> > > struts-config.xml file?
> > >
> > > Here's the tag in my struts-config.xml:
> > >
> > > <action path="/resources"
> > > forward="site.resources.page"/>
> > >
> > > Here's the definition in my tiles-defs.xml:
> > >
> > > <definition name="site.resources.page" extends="site.mainLayout" >
> > > <put name="body" value="/tiles/resources.jsp" />
> > > </definition>
> > >
> > > When I try to invoke this action forward I get an exception:
> > >
> > > java.lang.IllegalArgumentException: Path site.services.page does not start
> > > with a "/" character
> > >
> > > The forward tag is expecting a value like '/resources.jsp', not a tiles
> > > layout. Is what I'm trying to do possible?
> > >
> > > Thanks,
> > > Eric.
> > >
> > > **********************************************************************
> > > This message, including any attachments, contains confidential information
> > > intended for a specific individual and purpose, and is protected by law. If
> > > you are not the intended recipient, please contact sender immediately by
> > > reply e-mail and destroy all copies. You are hereby notified that any
> > > disclosure, copying, or distribution of this message, or the taking of any
> > > action based on it, is strictly prohibited.
> > > TIAA-CREF
> > > **********************************************************************
> > >
> > > --
> > > 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>
> >
> > --
> > 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>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: tiles question
Posted by Cedric Dumoulin <ce...@lifl.fr>.
You need the TilesRequestProcessor and ActionComponentServlet with Struts1.1.
ActionComponentServlet takes in charge Tiles initialization.
TilesRequestProcessor takes in charge Struts "forward" catching.
You can have your own request processor extending the Tiles one, allowing
functionalities from both.
Hope this help,
Cedric
Udo Walker wrote:
> Hi,
>
> can I mix
>
> <servlet-class>org.apache.struts.tiles.ActionComponentServlet</servlet-class>
>
> and my own RequestProcessor with Tiles and Struts 1.1?
>
> Do I have the full functionality of Tiles while keeping the
> functionality of my own RequestProcessor?
> Or, questioned the other way round: Do I need the TilesRequestProcessor
> for Struts 1.1?
>
> Thanks,
> Udo.
>
> "Wellie W. Chao" wrote:
> >
> > What version of struts are you using? I'm using 1.1 beta 1, and the forward
> > to tiles definition feature works just fine. My action tags look just like
> > what you specified.
> >
> > You may need to check and make sure you have the proper settings in web.xml.
> > In web.xml, you should have:
> >
> > <servlet-name>action</servlet-name>
> > <servlet-class>org.apache.struts.tiles.ActionComponentServlet</servlet-class
> > >
> >
> > Also, in struts-config.xml, you should have:
> >
> > <controller processorClass="org.apache.struts.tiles.TilesRequestProcessor"
> > nocache="true"/>
> >
> > (You can change the nocache if you want)
> >
> > -----Original Message-----
> > From: eschneider@tiaa-cref.org [mailto:eschneider@tiaa-cref.org]
> > Sent: Monday, April 08, 2002 5:25 PM
> > To: struts-user@jakarta.apache.org
> > Subject: tiles question
> >
> > Hi,
> >
> > Is it possible to call a tiles layout definition from an action tag in my
> > struts-config.xml file?
> >
> > Here's the tag in my struts-config.xml:
> >
> > <action path="/resources"
> > forward="site.resources.page"/>
> >
> > Here's the definition in my tiles-defs.xml:
> >
> > <definition name="site.resources.page" extends="site.mainLayout" >
> > <put name="body" value="/tiles/resources.jsp" />
> > </definition>
> >
> > When I try to invoke this action forward I get an exception:
> >
> > java.lang.IllegalArgumentException: Path site.services.page does not start
> > with a "/" character
> >
> > The forward tag is expecting a value like '/resources.jsp', not a tiles
> > layout. Is what I'm trying to do possible?
> >
> > Thanks,
> > Eric.
> >
> > **********************************************************************
> > This message, including any attachments, contains confidential information
> > intended for a specific individual and purpose, and is protected by law. If
> > you are not the intended recipient, please contact sender immediately by
> > reply e-mail and destroy all copies. You are hereby notified that any
> > disclosure, copying, or distribution of this message, or the taking of any
> > action based on it, is strictly prohibited.
> > TIAA-CREF
> > **********************************************************************
> >
> > --
> > 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>
>
> --
> 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>
Re: tiles question
Posted by Udo Walker <Ud...@abas.de>.
Hi,
can I mix
<servlet-class>org.apache.struts.tiles.ActionComponentServlet</servlet-class>
and my own RequestProcessor with Tiles and Struts 1.1?
Do I have the full functionality of Tiles while keeping the
functionality of my own RequestProcessor?
Or, questioned the other way round: Do I need the TilesRequestProcessor
for Struts 1.1?
Thanks,
Udo.
"Wellie W. Chao" wrote:
>
> What version of struts are you using? I'm using 1.1 beta 1, and the forward
> to tiles definition feature works just fine. My action tags look just like
> what you specified.
>
> You may need to check and make sure you have the proper settings in web.xml.
> In web.xml, you should have:
>
> <servlet-name>action</servlet-name>
> <servlet-class>org.apache.struts.tiles.ActionComponentServlet</servlet-class
> >
>
> Also, in struts-config.xml, you should have:
>
> <controller processorClass="org.apache.struts.tiles.TilesRequestProcessor"
> nocache="true"/>
>
> (You can change the nocache if you want)
>
> -----Original Message-----
> From: eschneider@tiaa-cref.org [mailto:eschneider@tiaa-cref.org]
> Sent: Monday, April 08, 2002 5:25 PM
> To: struts-user@jakarta.apache.org
> Subject: tiles question
>
> Hi,
>
> Is it possible to call a tiles layout definition from an action tag in my
> struts-config.xml file?
>
> Here's the tag in my struts-config.xml:
>
> <action path="/resources"
> forward="site.resources.page"/>
>
> Here's the definition in my tiles-defs.xml:
>
> <definition name="site.resources.page" extends="site.mainLayout" >
> <put name="body" value="/tiles/resources.jsp" />
> </definition>
>
> When I try to invoke this action forward I get an exception:
>
> java.lang.IllegalArgumentException: Path site.services.page does not start
> with a "/" character
>
> The forward tag is expecting a value like '/resources.jsp', not a tiles
> layout. Is what I'm trying to do possible?
>
> Thanks,
> Eric.
>
> **********************************************************************
> This message, including any attachments, contains confidential information
> intended for a specific individual and purpose, and is protected by law. If
> you are not the intended recipient, please contact sender immediately by
> reply e-mail and destroy all copies. You are hereby notified that any
> disclosure, copying, or distribution of this message, or the taking of any
> action based on it, is strictly prohibited.
> TIAA-CREF
> **********************************************************************
>
> --
> 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>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re[2]: tiles question
Posted by Ingo Bruell <ib...@gmx.de>.
Hi Struts,
WWC> Also, in struts-config.xml, you should have:
WWC> <controller processorClass="org.apache.struts.tiles.TilesRequestProcessor"
nocache="true"/>>
yes, that it was. Thanks
so long
Ingo Bruell
---
<ib...@gmx.de>
<In...@epost.de>
<ICQ# 40377720>
Oldenburg PGP-Fingerprint: CB01 AE12 B359 87C4 BF1C 953C 8FE7 C648 169E E5FC
Germany PGP-Public-Key available at pgpkeys.mit.edu
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: tiles question
Posted by "Wellie W. Chao" <wc...@caraveltech.com>.
What version of struts are you using? I'm using 1.1 beta 1, and the forward
to tiles definition feature works just fine. My action tags look just like
what you specified.
You may need to check and make sure you have the proper settings in web.xml.
In web.xml, you should have:
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.tiles.ActionComponentServlet</servlet-class
>
Also, in struts-config.xml, you should have:
<controller processorClass="org.apache.struts.tiles.TilesRequestProcessor"
nocache="true"/>
(You can change the nocache if you want)
-----Original Message-----
From: eschneider@tiaa-cref.org [mailto:eschneider@tiaa-cref.org]
Sent: Monday, April 08, 2002 5:25 PM
To: struts-user@jakarta.apache.org
Subject: tiles question
Hi,
Is it possible to call a tiles layout definition from an action tag in my
struts-config.xml file?
Here's the tag in my struts-config.xml:
<action path="/resources"
forward="site.resources.page"/>
Here's the definition in my tiles-defs.xml:
<definition name="site.resources.page" extends="site.mainLayout" >
<put name="body" value="/tiles/resources.jsp" />
</definition>
When I try to invoke this action forward I get an exception:
java.lang.IllegalArgumentException: Path site.services.page does not start
with a "/" character
The forward tag is expecting a value like '/resources.jsp', not a tiles
layout. Is what I'm trying to do possible?
Thanks,
Eric.
**********************************************************************
This message, including any attachments, contains confidential information
intended for a specific individual and purpose, and is protected by law. If
you are not the intended recipient, please contact sender immediately by
reply e-mail and destroy all copies. You are hereby notified that any
disclosure, copying, or distribution of this message, or the taking of any
action based on it, is strictly prohibited.
TIAA-CREF
**********************************************************************
--
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>