tiles-doc.jar is shipped with Struts1.1 previous than 15 jan, and is ready to run. So you can try the mentioned url test directly on it, and it should run. If not, let me know.
However, you have mentioned that you try to use Tiles with Struts1.0.1. If true, you need to use tilesForStruts1-0.jar instead of tiles.jar. Both tiles jar contains exactly the same compiled classes, but one is compiled with Struts1.1, and the other with Struts1.0. They are not fully compatible due to some changes in some base classes in Struts. Don't forget to remove tiles.jar if you want tilesForStruts1-0.jar be taken into account. Jim Crossley wrote: > 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]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

