掲示板
using tiles with struts 2 portlet
12年前 に jarod jarod によって更新されました。
using tiles with struts 2 portlet
New Member 投稿: 13 参加年月日: 11/01/17 最新の投稿
Hi,
I am trying to convert a struts 2 application to protlet. I have encounter two main problem :
By debugging, i have found that the context that could match is the JSPContext, but a PortletSessionContext is given at initialization instead of ServletSessionContext.
If any have already use tiles with struts 2 portlet, your help will be very helpful.
I am trying to convert a struts 2 application to protlet. I have encounter two main problem :
- First interceptors does not work when my package in struts.xml extends struts-portlet-default
- then, the blocking problem is using tiles. I have tried to move around it by implementing a PortletTilesResult that extends ServletDispatcherResult. With that, i'am able to access my tiles i have defined in configurations files. But once i tried to use <tiles:importAttribute> or any tiles tag lib that use attribute, i have a null Pointer Exception because it can't find a RequestContext that can be used to retrieved struts parameters.
For information, by default i have three Context : ServletContex, PortletCOntext and JSPContext.
By debugging, i have found that the context that could match is the JSPContext, but a PortletSessionContext is given at initialization instead of ServletSessionContext.
If any have already use tiles with struts 2 portlet, your help will be very helpful.