Deploying Tiles in a S2 app is just like doing it in a completely
Struts-free app.  The Tiles site has instructions, but the last time I
looked, they needed a lot of work.  What you need to do, basically, is
have the S2 result call "SOME_TILE.tiles", and the Tiles Servlet, which
is mapped to *.tiles will delegate to the definition in tiles.xml, or
whatever you call the definition file(s). 

I'll put together a document at work tomorrow.  My app uses Struts-1,
Struts-2, and JSF, all using Tiles to render the view.

- Ray Clough

  ----- Original Message -----
  From: "Pavel Sapozhnikov"
  To: "Struts Users Mailing List"
  Subject: Re: Struts2 Tiles question
  Date: Thu, 23 Aug 2007 20:12:59 -0400


  Ray thank you so much. So what steps should I take in order to do
  that.
  Could you help? Basically I remove the jar right I probably have to
  do
  remove some things in web.xml right? I mean basically what steps do I
  need
  to take in order to do that.

  On 8/23/07, Ray Clough wrote:
  >
  > If you don't want to point the result to a tile, or you don't want
  to use
  > type="tiles", you could also deploy Tiles-2 as a stand-alone
  service,
  > without the S2-T2 plugin. I do this, and it works more easily than
  the
  > plugin, and removes the dependency on the plugin. The fewer
  intermediate
  > layers between your app and a service it uses, the fewer bugs you
  will
  > encounter. And those bugs you do encounter will clearly be in the
  service,
  > not in the intermediate layer. This is especially good to remember
  if the
  > intermediate layers do not provide any added value.
  > - Ray Clough
  >
  >
  > > ----- Original Message -----
  > > From: "Chris Pratt"
  > > To: "Struts Users Mailing List"
  > > Subject: Re: Struts2 Tiles question
  > > Date: Thu, 23 Aug 2007 10:58:13 -0700
  > >
  > >
  > > Yes, but then you wouldn't use type="tiles"
  > > (*Chris*)
  > >
  > > On 8/23/07, Pavel Sapozhnikov wrote:
  > > > Yeah I think thats what I was looking for, um but actually I
  was
  > wondering
  > > > in struts.xml I say:
  > > >
  > > >
  > > > method="presentEntryLogin">
  > > > swiss.not_authenticated
  > > >
  > > >
  > > >
  > > > Can I instead of pointing to a definition point to actual jsp?
  And
  > this jsp
  > > > will have like more tile:insertAttribute and yea? Could I do
  that?
  > > >
  > > > On 8/23/07, Jiang, Jane (NIH/NCI) [C] wrote:
  > > > >
  > > > > I don't think you need tile-config.xml. You can just add your
  tiles
  > > > > definition to tiles.xml in WEB-INF.
  > > > >
  > > > > -----Original Message-----
  > > > > From: Pavel Sapozhnikov [mailto:[EMAIL PROTECTED]
  > > > > Sent: Wednesday, August 22, 2007 3:09 PM
  > > > > To: user@struts.apache.org
  > > > > Subject: Struts2 Tiles question
  > > > >
  > > > > Hi everybody. I have a question. I included all necessary
  things in
  > > > > order to
  > > > > take advantage of tiles in Struts2. I included listened in
  web.xml I
  > > > > included result type in struts.xml so now I know that I need
  > > > > tiles-config.xml in my WEB-INF right. Well how does
  tile-config.xmllook
  > > > > like. Could anyone give an example please thank you.
  > > > >
  > > > > --
  > > > > Pavel Sapozhnikov
  > > > > xFact, Inc
  > > > > [EMAIL PROTECTED]
  > > > >
  > > > >
  >
  ---------------------------------------------------------------------
  > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
  > > > > For additional commands, e-mail: [EMAIL PROTECTED]
  > > > >
  > > > >
  > > >
  > > >
  > > > --
  > > > Pavel Sapozhnikov
  > > > xFact, Inc
  > > > [EMAIL PROTECTED]
  > > >
  > >
  > >
  ---------------------------------------------------------------------
  > > To unsubscribe, e-mail: [EMAIL PROTECTED]
  > > For additional commands, e-mail: [EMAIL PROTECTED]
  >
  > >
  >
  >
  >
  > - Ray Clough
  > [EMAIL PROTECTED]
  >
  >
  >
  >
  ---------------------------------------------------------------------
  > To unsubscribe, e-mail: [EMAIL PROTECTED]
  > For additional commands, e-mail: [EMAIL PROTECTED]
  >
  >


  --
  Pavel Sapozhnikov
  xFact, Inc
  [EMAIL PROTECTED]



- Ray Clough
[EMAIL PROTECTED]

Reply via email to