Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Keeping and showing Jetty JSP source

DZone's Guide to

Keeping and showing Jetty JSP source

· Java Zone
Free Resource

Bitbucket is for the code that takes us to Mars, decodes the human genome, or drives your next car. What will your code do? Get started with Bitbucket today, it's free.

FYI...  Did you know that you can keep the generated source files for your JSPs when running Jetty from maven?

Just add this to your web.xml file:

<servlet id="jsp">
    <servlet-name>jsp</servlet-name>
    <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
   <init-param>
        <param-name>keepgenerated</param-name>
        <param-value>true</param-value>
   </init-param>
 </servlet>     
     

Then your JSP generated source, along with the class file, is located in target/tmp.

From http://www.rimple.com/tech/2011/9/27/keeping-and-showing-jetty-jsp-source.html

Are you using Bitbucket to accomplish your company's mission? Share your company’s mission with #Forthecode for a chance to be featured on our homepage, our social media channels, or win a free t-shirt!

Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}