You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Andoni <an...@indigo.ie> on 2003/06/18 11:25:15 UTC

Precompiling JSPs

Hello,

I have a build.cmd file that I have had and modified for every project I've done for years.  I should probably go learn ANT or some other build technique but for now I want to do this the command line way.  I'm not even sure if ANT will do what I want.

I want to have my .jsp files made into .java files (easy) then compiled into .class files (hard) before starting my Tomcat.  That way I can see any syntax errors in my .jsp files.

If I do this at the moment I get a load of errors where one JSP which is included in another uses variables which are only declared in the major one.

Is there a way to compile the .java files the way Tomcat does (which takes account of included .jsp's)?

Does ANT create .class files?

Thanks in advance.

Andoni.

Re: Precompiling JSPs

Posted by Ben Souther <bs...@fwdco.com>.
Have you tried compiling the servlet source files in the work directory?





On Wednesday 18 June 2003 05:25 am, Andoni wrote:
> Hello,
>
> I have a build.cmd file that I have had and modified for every project I've
> done for years.  I should probably go learn ANT or some other build
> technique but for now I want to do this the command line way.  I'm not even
> sure if ANT will do what I want.
>
> I want to have my .jsp files made into .java files (easy) then compiled
> into .class files (hard) before starting my Tomcat.  That way I can see any
> syntax errors in my .jsp files.
>
> If I do this at the moment I get a load of errors where one JSP which is
> included in another uses variables which are only declared in the major
> one.
>
> Is there a way to compile the .java files the way Tomcat does (which takes
> account of included .jsp's)?
>
> Does ANT create .class files?
>
> Thanks in advance.
>
> Andoni.

-- 
Ben Souther
F.W. Davison & Company, Inc.



REGISTER NOW FOR THE SCORPEO USER CONFERENCE!
September 18-19, 2003 in Boston/Brookline, MA
Additional Training Sessions held September 17, 2003
More info >> http://www.fwdco.com/services/Uconf03/default.shtm


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: Precompiling JSPs

Posted by Wayne Chang <wc...@pnwsoft.com>.
Andoni,

Justin Ruthenbeck helped me with this situation.  Direct your browser to:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper-howto.html
and look at "Web Application Compilation".  See if that helps you.


Best regards,
 
Wayne Chang
Pacific Northwest Software
Mobile:     (978) 869-3446
Email:       wchang@pnwsoft.com


-----Original Message-----
From: Andoni [mailto:andoni@indigo.ie]
Sent: Wednesday, June 18, 2003 6:25 PM
To: Tomcat Users List
Subject: Precompiling JSPs


Hello,

I have a build.cmd file that I have had and modified for every project
I've done for years.  I should probably go learn ANT or some other build
technique but for now I want to do this the command line way.  I'm not
even sure if ANT will do what I want.

I want to have my .jsp files made into .java files (easy) then compiled
into .class files (hard) before starting my Tomcat.  That way I can see
any syntax errors in my .jsp files.

If I do this at the moment I get a load of errors where one JSP which is
included in another uses variables which are only declared in the major
one.

Is there a way to compile the .java files the way Tomcat does (which
takes account of included .jsp's)?

Does ANT create .class files?

Thanks in advance.

Andoni.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: Precompiling JSPs

Posted by Andy Eastham <an...@gliant.com>.
Andoni,

I do this in Sun One Studio, where I do all my Java development.

You can compile JSPs just as you can compile java source.

Andy

> -----Original Message-----
> From: Andoni [mailto:andoni@indigo.ie]
> Sent: 18 June 2003 10:25
> To: Tomcat Users List
> Subject: Precompiling JSPs
> 
> 
> Hello,
> 
> I have a build.cmd file that I have had and modified for every 
> project I've done for years.  I should probably go learn ANT or 
> some other build technique but for now I want to do this the 
> command line way.  I'm not even sure if ANT will do what I want.
> 
> I want to have my .jsp files made into .java files (easy) then 
> compiled into .class files (hard) before starting my Tomcat.  
> That way I can see any syntax errors in my .jsp files.
> 
> If I do this at the moment I get a load of errors where one JSP 
> which is included in another uses variables which are only 
> declared in the major one.
> 
> Is there a way to compile the .java files the way Tomcat does 
> (which takes account of included .jsp's)?
> 
> Does ANT create .class files?
> 
> Thanks in advance.
> 
> Andoni.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org