Dave King wrote:

> Hi
>
> I'm a newbie to JSP, so forgive me if this question obvious to some.
>
> Is it possible to compile a JSP file, and then use the class file and remove
> the JSP file from the server?  Just to be clear I have a JSP file x.jsp, I
> compile it, creating x.class, I remove x.jsp from the server, can I still
> link to http://localhost/x.jsp ?
>
> I'm open to using almost any JSP implementation.
>
> -Peace
> Dave
>

I would imagine that in most cases this would cause a "Not Found" error.  The
JSP compiler servlet itself will usually check the last modified date of the
JSP page, to see if a recompile is necessary -- and it will not be able to
perform this check if you have removed the file.

On the other hand, could you not call this servlet with

    http://localhost/servlet/x

Assuming that you've configured your servlet engine to look in the right place
(the compilation output directory of your JSP implementation)?

All of this begs the obvious question ... why would you want to delete the JSP
page file in the first place?

Craig McClanahan

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to