History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-16898
Type: Bug Bug
Status: Open Open
Assignee: Dmitry Avdeev
Reporter: Sascha Weinreuter
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Incorrect path-validation in c:url

Created: 17 Jan 08 21:46   Updated: 18 Jan 08 13:38
Component/s: J2EE.JSP

Build: 7,651
Severity: Medium


 Description  « Hide
IDEA says it cannot resolve the path in a JSTL <c:url> fragment like this:
<c:url var="progressURL" value="progress" />

where the URL "progress" is mapped to a servlet:

<servlet-mapping>
    <servlet-name>ProgressServlet</servlet-name>
    <url-pattern>/progress</url-pattern>
</servlet-mapping>

The error goes away if I remove the leading "/" in the url-pattern, but then Tomcat refuses to deploy the webapp:

Caused by: java.lang.IllegalArgumentException: Invalid <url-pattern> progress in servlet mapping
	at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:2292)
	at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:2268)


 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.