I don't mean to be a bondhead, but all I did was copy the
tiles-doc.jar to Tomcat's webapps directory.  Wouldn't it be bundled
with the correct struts version?

The page, /test/testStrutsAction.jsp, *does* run correctly, but
/test/testAction.do does not.  It's the latter that seems to be what I
need to get working, right?

Also, the two tiles jar files seem to be the same size:

-rw-r--r--    1 jim    jim      80633 Jan 14 08:52 tiles.jar
-rw-r--r--    1 jim    jim      80633 Jan 14 08:52 tilesForStruts1-0.jar

Is that just a coincidence or might the current tiles distribution be
messed up?  In my app, either jar file seems to work fine.

-- Jim

Cedric Dumoulin <[EMAIL PROTECTED]> writes:

>   First, check that you use tilesForStruts1.0.jar, as you are using Struts1.0.1.
>   Second, check if your tiles/struts1.0.1 installation works :
> 
>    * install tiles-doc.jar or struts-tiles.jar
>    * replace WEB-INF/lib/struts.jar with struts.jar from 1.0.1
>    * replace tiles.jar with tilesForStruts1.0.jar (remove the first and put the
>      second)
>    * start your web container
>    * try url ???/test/testStrutsAction.jsp
>         o If this run correctly, your installation is correct, if not, there is a
>           problem with install
> 
>     Cedric
> 
> Jim Crossley wrote:
> 
> > I've just started using Tiles, and I really like it.
> >
> > I want to be able to overload my attributes in my struts actions prior
> > to forwarding to the tiles definitions, but I'm having some trouble.
> > I found this message in the archives:
> >
> > http://www.mail-archive.com/struts-user%40jakarta.apache.org/msg16127.html
> >
> > But I can't seem to make it work.  When I attempt to run
> > tiles-doc/test/testAction, I get this:
> >
> > Error
> > Can't get component context.
> >
> > It seems ComponentContext.getContext(request) always returns null.
> >
> > I'm using Struts 1.0.1 with the current Tiles (2002 01 11, I think).
> >
> > Any advice?
> >
> > --
> > To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to