tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Sy <...@AstonBrooke.com>
Subject RE: JSP: turning off incremental file generation
Date Fri, 21 Apr 2000 18:01:54 GMT
I haven't had the chance to try out jspc, but then 
I've found another workaround that turns off the 
incremental generation of JSP classes. 

Using javap I examined the xxx_MyJSP.class file generated 
by Tomcat. Turns out it contains a class with a name like 
jsp.xxx_MyJSP_jsp_6 
I erase xxx_MyJSP.class and Tomcat generates 
xxx_MyJSP_jsp_0.java all the time. 

I'll also try out jspc. Looks like it could be useful 
for other stuff too! Thanks for your help. 

-----Original Message-----
From: Anil Vijendran
To: tomcat-dev@jakarta.apache.org
Sent: 4/20/00 5:04 PM
Subject: Re: JSP: turning off incremental file generation

I don't know how exactly you are using Cafe with Tomcat but a thought
would be to use the command line compiler, jspc to generate the Java
file and load it up in Cafe as a servlet?

Andrew Sy wrote:

> Given a MyJSP.jsp file, Tomcat compiles it into a
> a xxxMyJSP_jsp_n.java where n runs from 0 to 9.
> Everytime MyJSP.jsp file is changed, Tomcat
> increments/cycles through n.
>
> My question is: Can I turn this feature off?
> That is, I would like Tomcat to generate a xxxMyJSP_jsp.java
> file without incrementing the suffix n.
>
> I've tried a couple of things to no avail, such as
>
> - deleting xxxMyJSP_jsp_0.java to xxxMyJSP_jsp_9.java
> to try to force Tomcat to always only generate
> xxxMyJSP_jsp_0.java
>
> - in web.xml setting the "keepgenerated" JspServlet
> init-param to "false".
>
> The reason I would like to turn off this incremental
> suffix feature is this: I am trying to debug my JSP
> pages by hooking up the java classes (and the corresponding
> xxxMyJSP_jsp_n.java source files) to my debugger
> (Visual Cafe). But because up to 10 java classes
> are generated per jsp file, I have had to hook-up
> 10 java classes into my Visual Cafe projects for
> each JSP file (and set breakpoints in each of the
> 10 java source files).  A big hassle if you have
> more than 3 JSP files.
> Does anyone know any (Tomcat or VCafe) work around?
>
> ps. I just joined the User List today, and I hope I'm
> posting my question to the right place. Else, my apologies.
>
> thnx.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org

--
Peace, Anil +<:-)




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

Mime
View raw message