Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Incomplete
-
2.0.11.2
-
None
-
websphere6.0 (jdk1.42),all the referenced jar is in the struts-2.0.11.2-all.zip downloaded from the official site.
Description
first of all,the reason is the exception on ServletDispatcherResult.doExecute:
setLocation(location);
javax.servlet.ServletContext servletContext = ServletActionContext.getServletContext();
TilesContainer container = TilesAccess.getContainer(servletContext); //here get null container
javax.servlet.http.HttpServletRequest request = ServletActionContext.getRequest();
javax.servlet.http.HttpServletResponse response = ServletActionContext.getResponse();
container.render(location, new Object[]
); //here will throw the null pointer exception
I traced the exception in the StrutsTilesListener ,it do not work at all,I suppose it is the static initialize method work in error:
INIT.put(
"org.apache.tiles.factory.TilesContainerFactory",
(class$org$apache$struts2$tiles$StrutsTilesContainerFactory == null
&& (class$org$apache$struts2$tiles$StrutsTilesContainerFactory =
(new StrutsTilesContainerFactory[0]).getClass().getComponentType())
== null
? class$org$apache$struts2$tiles$StrutsTilesContainerFactory
: class$org$apache$struts2$tiles$StrutsTilesContainerFactory)
.getName());
this code is what I can't understand!and How can I get the source code of the pluggin?
Attachments
Issue Links
- incorporates
-
TILES-335 struts2 + tiles + jdk 1.4, tiles do not work
- Closed