I am trying to map a URL name onto a JSP using the following snippet of web.xml:
<servlet-name>HelloJsp</servlet-name>
<jsp-file>HelloWorld.jsp</jsp-file>
<servlet-mapping>
<servlet-name>HelloJsp</servlet-name>
<url-pattern>/yo</url-pattern>
</servlet-mapping>
And I receive the following error:
08:35:14,609 WARN [jbossweb] WARNING: Exception for /lance/yo
org.apache.jasper.JasperException: No output directory: String index out of range: -1
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:536)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
Does anyone have ideas about why? Is there a configuration option that I need to supply to the JSP engine to give it an "output directory"?