You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Laurie Harper <la...@holoweb.net> on 2008/02/01 16:57:14 UTC

Re: Struts tags and Filter Dispatcher Url Pattern-struts 2.1.1

[The answer to your question is yes, Struts tags will only work within 
the context of a request processed by Struts (i.e. through the filter). 
However, in the future:]

Please post questions about using Struts to the Struts Users list only. 
The Struts Dev list is for discussing the development and enhancement of 
Struts itself.

http://struts.apache.org/mail.html

Sanjeev Vijapurapu wrote:
> Hi,
> 
> I have recently upgraded to struts 2.1.1 and if my struts filter
> dispatcher url pattern is not "/*" instead it is "/actions/*,
> /struts/*".
> 
> And now if I am trying to access a jsp page that is not under that url
> pattern ( something like /test.jsp), struts tags in that jsp page fail.
> 
> I get the following stack trace
> 
>  
> 
> java.lang.NullPointerException
>         at
> org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:55)
>         at
> org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack(StrutsBodyTag
> Support.java:46)
>         at
> org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTag
> Support.java:47)
>         at
> org.apache.jsp.test_jsp._jspx_meth_sx_head_0(org.apache.jsp.test_jsp:95)
>         at
> org.apache.jsp.test_jsp._jspService(org.apache.jsp.test_jsp:65)
>         at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:93)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
>         at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
> va:373)
>         at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:470)
>         at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:364)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
>  
> So does this mean that if my jsp is using struts tags, it has to go
> through filter dispatcher?
>  
> Thanks
> 
>  
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org