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].

Upcoming Training Events

0 AM
Visual Studio Live! San Diego
September 8-12, 2025
Live! 360 Orlando
November 16-21, 2025
Cloud & Containers Live! Orlando
November 16-21, 2025
Data Platform Live! Orlando
November 16-21, 2025
Visual Studio Live! Orlando
November 16-21, 2025