struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Graham" <dgraham1...@hotmail.com>
Subject RE: Using tiles def in global forwards broken?
Date Wed, 05 Mar 2003 21:51:19 GMT
Why are you avoiding tiles tags?  You need them to insert tiles into jsps.  
I setup a filter that looks for urls ending in / or index.jsp.  If it sees 
one, it redirects the client to /index.do.  This solves the default page 
issue.

David



>From: "White, Joshua A (CASD, IT)" <Joshua.White@thehartford.com>
>To: "'Struts Developers List'" <struts-dev@jakarta.apache.org>
>CC: "'dgraham1980@hotmail.com'" <dgraham1980@hotmail.com>
>Subject: RE: Using tiles def in global forwards broken?
>Date: Wed, 5 Mar 2003 16:32:07 -0500
>
>David,
>
>Perhaps I am trying to go about this the wrong way.  With the exception of
>the default page, every page in my application is referenced through tiles
>definitions.  Is there another way to take the default request/page and 
>call
>your default page using a tiles definition?  I am trying to avoid putting
>tiles tags in the jsp itself.
>
>Joshua
>
>
>-----Original Message-----
>From: David Graham [mailto:dgraham1980@hotmail.com]
>Sent: Wednesday, March 05, 2003 4:07 PM
>To: struts-dev@jakarta.apache.org
>Subject: RE: Using tiles def in global forwards broken?
>
>
>I think the problem is that you're using the logic:forward tag.  That tag
>uses the RequestDispatcher to do the forward which doesn't give Tiles a
>chance to step in and interpret your tile name into something the
>RequestDispatcher can handle.
>
>Regardless, I recommend you don't use the logic:forward tag because it's
>performing business logic in the view layer (jsp).
>
>David
>
>
>
> >From: "White, Joshua A (CASD, IT)" <Joshua.White@thehartford.com>
> >Reply-To: "Struts Developers List" <struts-dev@jakarta.apache.org>
> >To: "'Struts Developers List'" <struts-dev@jakarta.apache.org>
> >CC: "'dgraham1980@hotmail.com'" <dgraham1980@hotmail.com>
> >Subject: RE: Using tiles def in global forwards broken?
> >Date: Wed, 5 Mar 2003 15:20:17 -0500
> >
> >David,
> >
> >Would you mind helping me out?  Could you compare my information with
> >yours?
> >
> >Struts Version: jakarta-struts-1.1-rc1
> >In Welcome page (default page):
> >     <%@ taglib uri="struts-logic" prefix="logic"%>
> >     <logic:forward name="test"/>
> >
> >
> >
> >In Struts config:
> >     ...
> >       <global-forwards>
> >         <forward name="test" path="test.defaultLayout"/>
> >       </global-forwards>
> >
> >     ...
> >
> >     <plug-in className="org.apache.struts.tiles.TilesPlugin">
> >         <set-property property="definitions-config"
> >value="/WEB-INF/tiles-defs.xml"/>
> >         <set-property property="definitions-debug" value="2"/>
> >         <set-property property="definitions-parser-details" value="2"/>
> >         <set-property property="definitions-parser-validate"
> >value="true"/>
> >     </plug-in>
> >
> >
> >
> >In tiles-defs.xml:
> >     ...
> >     <tiles-definitions>
> >         <definition name="test.defaultLayout"
> >path="/WEB-INF/jsp/layouts/defaultLayout.jsp">
> >           <put name="header" value="/WEB-INF/jsp/common/header.jsp"/>
> >           <put name="menubar" value="/WEB-INF/jsp/common/menubar.jsp"/>
> >           <put name="body-content"
> >value="/WEB-INF/jsp/common/body-content.jsp"/>
> >           <put name="footer" value="/WEB-INF/jsp/common/footer.jsp"/>
> >         </definition>
> >     </tiles-definitions>
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >-----Original Message-----
> >From: David Graham [mailto:dgraham1980@hotmail.com]
> >Sent: Wednesday, March 05, 2003 3:11 PM
> >To: struts-dev@jakarta.apache.org
> >Subject: Re: Using tiles def in global forwards broken?
> >
> >
> >Works fine for me.
> >
> >David
> >
> >
> >
> > >From: "White, Joshua A (CASD, IT)" <Joshua.White@thehartford.com>
> > >Reply-To: "Struts Developers List" <struts-dev@jakarta.apache.org>
> > >To: "'struts-dev@jakarta.apache.org'" <struts-dev@jakarta.apache.org>
> > >Subject: Using tiles def in global forwards broken?
> > >Date: Wed, 5 Mar 2003 14:40:22 -0500
> > >
> > >Chucks book contains an example of using a tiles definition in a global
> > >forward (See page 347).  This example does not work in
> > >jakarta-struts-1.1-rc1.  Is this a bug or did this feature never exist?
> > >
> > >Regards,
> > >
> > >Joshua White
> > >
> > >
> > >This communication, including attachments, is for the exclusive use of
> > >addressee and may contain proprietary, confidential or privileged
> > >information. If you are not the intended recipient, any use, copying,
> > >disclosure, dissemination or distribution is strictly prohibited. If
> > >you are not the intended recipient, please notify the sender
> > >immediately by return email and delete this communication and destroy 
>all
> > >copies.
> > >
> > >
> > >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
> > >For additional commands, e-mail: struts-dev-help@jakarta.apache.org
> >
> >
> >_________________________________________________________________
> >The new MSN 8: advanced junk mail protection and 2 months FREE*
> >http://join.msn.com/?page=features/junkmail
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: struts-dev-help@jakarta.apache.org
> >
> >
> >This communication, including attachments, is for the exclusive use of
> >addressee and may contain proprietary, confidential or privileged
> >information. If you are not the intended recipient, any use, copying,
> >disclosure, dissemination or distribution is strictly prohibited. If
> >you are not the intended recipient, please notify the sender
> >immediately by return email and delete this communication and destroy all
> >copies.
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: struts-dev-help@jakarta.apache.org
>
>
>_________________________________________________________________
>Help STOP SPAM with the new MSN 8 and get 2 months FREE*
>http://join.msn.com/?page=features/junkmail
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-dev-help@jakarta.apache.org
>
>
>This communication, including attachments, is for the exclusive use of
>addressee and may contain proprietary, confidential or privileged
>information. If you are not the intended recipient, any use, copying,
>disclosure, dissemination or distribution is strictly prohibited. If
>you are not the intended recipient, please notify the sender
>immediately by return email and delete this communication and destroy all 
>copies.


_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail


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


Mime
View raw message