The JSP to URL mapping entity emitted by JspC.

Component Java
The road to reusable Servlet components
by Attila Szegedi
Listing 4. The JSP to URL mapping entity emitted by JspC.


<servlet>
  <servlet-name>
    org.foo.myapp.makeCoffee
  </servlet-name>
  <servlet-class>
    org.foo.myapp.makeCoffee
  </servlet-class>
</servlet>
<servlet-mapping>
  <url-pattern>
    /org/foo/myapp/makeCoffee.jsp
  </url-pattern>
  <servlet-name>
    org.foo.myapp.makeCoffee
  </servlet-name>
</servlet-mapping>

About the Author

Attila Szegedi is the lead developer at Scriptum, a company located in Szeged, Hungary, specializing in information retrieval and data cleansing technologies. Attila may be contacted at [email protected].