On 2017-10-04 05:04, Lukasz Lenart wrote:
> 2017-10-03 20:31 GMT+02:00 ss2...@cornell.edu :
> > Hello,
> >
> > I have a struts app which uses both struts 1 and struts 2. While we are
> > migrating slowly and trying to remove all struts 1 stuff, we want to share
> > tiles during the migration process across both s1 and s2. While there is
> > enough documentation demonstrating how to use various versions of plug-ins
> > and tiles library with either s1 or s2, I couldn't find an example that
> > explains how to configure and use various plug-ins simultaneously during
> > migration.
> >
> > Currently I have the following tiles related config in the web.xml. I use
> > both the struts 1 filter and struts 2 listener. I always get 404 errors
> > when I use the same tile def from struts 2.
> >
> >
> > http://java.sun.com/xml/ns/javaee";
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> > xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> > http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd";
> > version="3.0">
> >
> >
> >
> > org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG
> >
> >
> > /WEB-INF/tiles-defs-.xml
> >
> >
> >
> >
> > Tiles Filter
> > org.apache.tiles.web.startup.TilesFilter
> > true
> >
> >
> >
> > Tiles Filter
> > /*
> > REQUEST,FORWARD,ASYNC
> >
> >
> >
> >
> > org.apache.struts2.tiles.StrutsTilesListener
> >
> >
> >
> > Please let me know how to configure correctly so that I can use both s1 and
> > s2 during migration so that we can test functionality as we migrate each
> > module.
>
> This is not possible as far I know, both Struts versions using
> different Tiles versions - Struts 1 is using an embedded version of
> Tiles 1 whereas Struts 2 standalone version of Tiles 2 or 3. You must
> use different DTDs to support both which is not possible using a one
> XML config. Also Struts 1 tags are not compatible with Struts 2 tags,
> you cannot mix them in a one JSP file.
>
>
> Regards
> --
> Åukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
> Thanks for confirming this.
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org