Hi,

I am using the sitemesh-plugin to decorate my struts-site and Im am wondering, 
if it is possible to decorate static-pages using sitemesh.
That is, I have some plain html pages which need to get the same LAF the entire 
site has.
I already added "<pattern>/html/*</pattern>" to the decorators.xml, but all I 
get is an Exception when trying to open the page:

java.lang.RuntimeException: javax.servlet.ServletException: Error applying 
decorator: null
        
com.opensymphony.sitemesh.webapp.decorator.BaseWebAppDecorator.render(BaseWebAppDecorator.java:39)
        
com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:84)
        
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter.doFilter(StrutsPrepareFilter.java:82)


The Exception is raised by a NullPointerException in 
org.apache.struts2.sitemesh.OldDecorator2NewStrutsDecorator.render(Content, 
HttpServletRequest, HttpServletResponse, ServletContext, SiteMeshWebAppContext) 
by 
ValueStack vs = 
Dispatcher.getInstance().getContainer().getInstance(ValueStackFactory.class).createValueStack();
 

"Dispatcher.getInstance()" returns null

FYI, I am using the sitemesh-2.4.2 hotfix from jira

Now, is this behaviour only a bug, or is it not meant to be used with static 
content?

To find out by myself, I was desperately trying to compile struts2 and xwork 
from svn, but it continously failed and I gave up. (Maybe this is why the last 
nightly build is from 6 days ago?)

Hope somebody can help.

Regards,
 Philipp

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to