tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Petrelli <antonio.petre...@gmail.com>
Subject Re: migrating from struts-tiles to tiles 2
Date Wed, 21 Jan 2009 08:41:41 GMT
2009/1/20 Colyer, Jeffrey <jeff.colyer@kroger.com>:
> I'm trying to do the migration and keep my existing tiles-defs.xml files.

You might be interested in this:
http://tiles.apache.org/framework/migration/configuration.html#Reusing_old_Tiles_configuration_files

> java.lang.NullPointerException
>        org.apache.tiles.web.util.TilesDispatchServlet.doGet(TilesDispatchServlet.java:87)
>...
>        <servlet-name>TilesDispatcher</servlet-name>
>        <servlet-class>org.apache.tiles.web.util.TilesDispatchServlet</servlet-class>

TilesDispatchServlet alone does not initialize Tiles, you have to use
TilesServlet or TilesListener:
http://tiles.apache.org/framework/tutorial/configuration.html

Antonio

Mime
View raw message