They do, and depending on your app server it's going to be in a different
place.  JBoss / Jetty creates it in a directory called jetty__8080__myapp,
where myapp is the name of the application you're running.

In Orion it's usually under the /orion/applications/myapp directory.

In any case once the jsp is compiled into a servlet, there is always a
resulting .java and .call file which you can copy somewhere, obfuscate or
what ever, then pack that up and run it with your app.  The way to do this
though is that for every JSP you have to add a servlet descriptor in the
web.xml, and map the uri to its JSP name.  In other words if the original
jsp is called index.jsp, the resulting file (i think) would be
index_jsp.java.  In the web.xml you would put a servlet block calling the
servlet index, and the url pattern would be index.jsp, this way when someone
makes a call to index.jsp, it gets mapped to the index servlet and run just
like a regular jsp.

This method is quite useful if you want to deploy your code, or you're
selling code to clients, and you want to protect it from getting stolen.  I
would only do this if you're going to obfuscate your code, otherwise it's a
waste of time since reverse engineering those files is not too hard.

Hope this helps
R
----- Original Message -----
From: "Lance Lavandowska" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 30, 2002 6:03 PM
Subject: Re: In MVC architecture can we use JSP as a controller?


> > Could you explain in more detail what you meant by pre-compiled
> > jsp-servlets?
> > You mean to remove the code and let the work folder be there. I didnt
> > understand, this concept is pretty new to me :-). Which container
> supports
> > this feature?
>
> That is it exactly.  I've never tried it myself, only noted that JRun &
> Resin (caucho.com) support it.  I believe its part of the spec and all
> containers such support it (not sure).
>
> Good luck.
>
> Lance
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to