Why do you want to do this though, there is not, for instance, any speed
improvement, as this is what the container does anyway?

In fact, instead of going through this whole excersize you could try to find
the compiled class that the container generates anyway.

For Tomcat seach under the appropriate project sub-directory withing the
"work" directory.


> -----Original Message-----
> From: Rajesh Thiharie [SMTP:[EMAIL PROTECTED]]
> Sent: 06 November 2002 12:32
> To:   [EMAIL PROTECTED]
> Subject:      Re: JSP -> servlet convertor...
>
> You can use the provided jspc (jsp compiler) with the servlet container
> you use.
> Jakarta Tomcat and WebLogic have them The others I am not aware of, but
> they should have them.
> <Check>
> You will need to set the CLASSPATH properly to be able to get jspc to
> compile properly.
> </Check>
>
> When you compile a JSP ( filename.jsp ) file, it gets converted to a
> .java file,
> i.e., filename.java. You then need to compile it with the normal java
> compiler
> ( javac ) and place the resulting class file in WEB-INF/classes.
> After that you need to define a mapping for the filename.jsp to
> filename.class
> in the web.xml file inside your web application. If you do not do the
> mapping
> the servlet container will compile the JSP file in the work directory
> which will
> defeat the purpose of  pre-compiling.
>
> You can automate the whole process with Jakarta Ant too. However that will
> involve you spending some time learning the way Jakarta Ant works.
>
> Cheers
> Rajesh Thiharie
> New Delhi, India
> 91 124 6455511 x 109 Work
>
> David wrote:
>
> >I would like to convert JSP into servlet, is there any tool to do that?
> >Any suggestions will be appreciated.
> >
>
> ==========================================================================
> =
> 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
--

It is the strict policy of Truworths that its e-mail facility and all
e-mail communications emanating therefrom, should be utilised for
business purposes only and should conform to high professional and
business standards.   Truworths has stipulated certain regulations in
terms whereof strict guidelines relating to the use and content of
e-mail communications are laid down. The use of the Truworths e-mail
facility is not permitted for the distribution of chain letters or
offensive mail of any nature whatsoever.   Truworths hereby distances
itself from and accepts no liability in respect of the unauthorised
use of its e-mail facility or the sending of e-mail communications
for other than strictly business purposes.   Truworths furthermore
disclaims liability for any  unauthorised instruction for  which
permission was not granted.    Truworths Limited accepts no liability
for any consequences arising from or as a result of reliance on this
message unless it is in respect of bona fide Truworths business for
which proper authorisation has been granted.

Any recipient of an unacceptable communication, a chain letter or
offensive material of any nature is requested to notify the Truworths
e-mail administrator ([EMAIL PROTECTED]) immediately in order that
appropriate action can be taken against the individual concerned.

===========================================================================
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