[ https://issues.apache.org/struts/browse/WW-1640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_39793 ]
Don Brown commented on WW-1640: ------------------------------- Yeah, I'm not too sure how you'd catch this. The docs around that property say to leave it alone unless you really know what you are doing. Reimplementing every tag's template in a new view technology is not a trivial task. > When using JSP templates for tags, missing templates fail without error > ----------------------------------------------------------------------- > > Key: WW-1640 > URL: https://issues.apache.org/struts/browse/WW-1640 > Project: Struts 2 > Issue Type: Improvement > Components: Views > Affects Versions: 2.0.1 > Environment: Tomcat 5.5, Mac OS X 10.4 > Reporter: Joe Germuska > Priority: Minor > Fix For: 2.0.x > > > A developer on my team set up his first Struts 2 app and set the Struts > property > struts.ui.templateSuffix=jsp > He didn't understand the meaning of the property, so no corresponding > templates were set up in the webapp path. > The problem was that there were no error reports for this situation: > In org.apache.struts2.components.Include > String resourcePath = getContextRelativePath(request, aResult); > RequestDispatcher rd = request.getRequestDispatcher(resourcePath); > if (rd == null) { > throw new ServletException("Not a valid resource path:" + > resourcePath); > } > The RequestDispatcher was not null, even though this page did not exist. I > was surprised by this, but in short, he and a teammate were baffled as to why > these new tags just weren't working. > I'm setting the priority of this to minor because JSP templates are not that > common, and besides, I have no idea how you'd fix it if the RequestDispatcher > doesn't complain when a path doesn't exist. Is this unique to Tomcat 5.5? I > thought I'd document it and if anyone has some time, they can experiment to > see if its a wider problem. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/struts/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira