Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


There are several options for modifying the Jasper JSP servlet configuration. Which is most suitale will depend on your requirements.

Override webdefault.xml

You can make a copy of the webdefault.xml shipped with jetty, apply your changes and use it instead of the shipped version. The example below shows
how to do this when using the maven jetty plugin.

title"Overiding webdefault.xml"
Code Block

Configure JSP Servlet in web.xml

Another option is to add an ebtry for the Jasper JSP servlet to the web.xml file of your webapp.
You can use the entry in webdefault.xml as a starting point.

title"Configuring JSP Servlet in web.xml"
Code Block

 <servlet id="jsp">

  <servlet id="my-servlet">
Contact the core Jetty developers at
private support for your internal/customer projects ... custom extensions and distributions ... versioned snapshots for indefinite support ... scalability guidance for your apps and Ajax/Comet projects ... development services from 1 day to full product delivery