Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: Problem while Struts 2 and Tiles 2 integration.

Abhijeet Kahale

2007-02-14

Replies:

On 2/14/07, Dave Newton <newton.dave@(protected):
>
> --- Abhijeet Kahale <abhi.pspl@(protected):
> > Can anyone please help?
> > I am waiting for a response...
>
> Oh, my bad.


Thnx for the response.

> > I am using *struts2-tiles-plugin-2.0.5.jar* , *
> > > tiles-api-2.0-20070130.184344-3.jar* and *
> > > tiles-core-2.0-20070130.184344-3.jar* for the
> > integration. (but the struts
> > > core jar I am using is *struts2-core-2.0.1.jar *)
>
> Why are you using 2.0.1 core and 2.0.5 tiles plugin?
> This strikes me as being a bad idea, although I'll
> admit trying it never really crossed my mind.


I tried with struts2-core-2.0.1.jar, but it's still not working.

> > *<Exception>*
> > >   *Messages*: I/O Error reading definitions.
>
> That sure looks suspicious, huh.


Getting the same exception with the new jar also.

> > The snippet of my tiles-def file is
> > > *<snip>*
> > > <tiles-definitions>
> > >   <definition name="blank"
> > > [...]
>
> What's the name of your tiles configuration file and
> where is it located?


I am using tiles.xml and put it under WEB-INF/

> > I even configured the
> > *org.apache.struts2.tiles.StrutsTilesListener* in
> > > the web.xml
> > > Can anybody help me out?
> > >
> > > One more thing I want to know is which tiles
> > > taglib should i use?
>
> The one that comes with Tiles 2.


Ok, using that only, just wanted to confirm.

>> Then I tried without specifying any tld
> configuration in
> > web.xml at all.
>
> Good; that hasn't been necessary for awhile now.
>
> d.
©2008 junlu.com - Jax Systems, LLC, U.S.A.