struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Pratt" <thechrispr...@gmail.com>
Subject Re: issues with tiles with struts 2
Date Sun, 08 Jul 2007 21:54:23 GMT
Very true, I should have said or, not also.
  (*Chris*)

On 7/8/07, Roberto Nunnari <roberto.nunnari@supsi.ch> wrote:
>
> Chris Pratt wrote:
> > Also, make sure you define the tiles result-type in your struts.xml.
>
> if your package extends tiles-default, you don't need that.
>
> --
> Robi
>
>
> >
> > <package ...>
> >  <result-types>
> >    <result-type name="tiles" class="
> > org.apache.struts2.views.tiles.TilesResult" />
> >  </result-types>
> > </package>
> >
> >  (*Chris*)
> >
> > On 7/7/07, Roberto Nunnari <roberto.nunnari@supsi.ch> wrote:
> >>
> >> Hello shahab.
> >>
> >> make sure you have all the tiles libraries:
> >> struts2-tiles-plugin-2.0.8.jar
> >> ties-api-2.0.3.jar
> >> tiles-core-2.0.3.jar
> >> tiles-jsp-2.0.3.jar
> >>
> >> then make sure your action's package extends tiles-default
> >>
> >> hope that helps.
> >>
> >> --
> >> Robi
> >>
> >>
> >>
> >> shahab wrote:
> >> > Hi: I need some help with using tiles 2 with Struts 2.
> >> >
> >> > I have configured tiles servlet in web.xml as follows - (i am using
> >> Spring
> >> > listener)
> >> >     <servlet>
> >> >       <servlet-name>tiles</servlet-name>
> >> >
> >> >
> >> <servlet-class>org.apache.tiles.web.startup.TilesServlet
> </servlet-class>
> >> >       <init-param>
> >> >               <param-name>
> >> >
> >> org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG
> >> >               </param-name>
> >> >               <param-value>
> >> >                       /WEB-INF/tiles-defs.xml
> >> >               </param-value>
> >> >       </init-param>
> >> >               <load-on-startup>2</load-on-startup>
> >> >       </servlet>
> >> >
> >> > During start up, tiles-defs.xml is being read. However, when I see a
> >> blank
> >> > screen when the page is rendered. The jsp has the following -
> >> > <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
> >> > <tiles:insertDefinition name="test.definition" />
> >> >
> >> > (test.definition is defined in tiles-defs.xmls as follows -
> >> >   <definition name="test.definition" template="/layout.jsp">
> >> >       <put-attribute name="title"  value="This is the title."/>
> >> >       <put-attribute name="header" value="/header.jsp"/>
> >> >       <put-attribute name="body"   value="/body.jsp"/>
> >> >   </definition>
> >> >
> >> > I have layout.jsp, header.jsp and body.jsp in the same directory
> where
> >> the
> >> > jsp is.
> >> >
> >> > (In a pdf book from InfoQ, the author says that, the result type of
> an
> >> > action should be stated as "tiles". i tried that, but i got the
> >> following
> >> > error -
> >> > There is no result type defined for type 'tiles')
> >> >
> >> > Please help.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message