Tomcato4.0.4 and included jsp compilation problem

2002-07-25 Thread Ashish Kulkarni

Hi,
I m using tomcat4.0.4 , i found out today that when i
modify the included jsp , tomcat does not recompile
it.
i.e.
I have suppose a jsp called test.jsp and i include a
jsp called test1.jsp.
If for some reason i modify test1.jsp and dont modify
test.jsp.
tomcat does not recompile test.jsp so it is as if i am
using old test1.jsp,
but if i modify test.jsp (just add some space to make
it look new) it works,
so is this the correct way of working??
how does other app server behave, or is this a bug, or
need to do some settings???

Ashish


__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Tomcato4.0.4 and included jsp compilation problem

2002-07-25 Thread Durham David Cntr 805CSS/SCBE

There are 2 kinds of includes, one is compile time, one is runtime.  If you're using a 
compile time include, i.e.  %@ include file=include.jsp%  then you need to update 
the file that is calling the include.  For example, 'touch 
file_that_includes_something.jsp'.  This is not a bug.

-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 25, 2002 10:31 AM
To: Tomcat Users List
Subject: Tomcato4.0.4 and included jsp compilation problem


Hi,
I m using tomcat4.0.4 , i found out today that when i
modify the included jsp , tomcat does not recompile
it.
i.e.
I have suppose a jsp called test.jsp and i include a
jsp called test1.jsp.
If for some reason i modify test1.jsp and dont modify
test.jsp.
tomcat does not recompile test.jsp so it is as if i am
using old test1.jsp,
but if i modify test.jsp (just add some space to make
it look new) it works,
so is this the correct way of working??
how does other app server behave, or is this a bug, or
need to do some settings???

Ashish


__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Tomcato4.0.4 and included jsp compilation problem

2002-07-25 Thread Jason Koeninger

With static includes, that's Tomcat's normal operation.  The 
reason being that recursively checking timestamps on all 
includes could become very expensive.  You can use the 
touch utility if you don't want to edit the file.

Another option is to use dynamic includes with jsp:include... 
if it's a major problem, but there's a performance impact.

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com

On Thu, 25 Jul 2002 08:31:12 -0700 (PDT), Ashish Kulkarni wrote:

Hi,
I m using tomcat4.0.4 , i found out today that when i
modify the included jsp , tomcat does not recompile
it.
i.e.
I have suppose a jsp called test.jsp and i include a
jsp called test1.jsp.
If for some reason i modify test1.jsp and dont modify
test.jsp.
tomcat does not recompile test.jsp so it is as if i am
using old test1.jsp,
but if i modify test.jsp (just add some space to make
it look new) it works,
so is this the correct way of working??
how does other app server behave, or is this a bug, or
need to do some settings???

Ashish


__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Tomcato4.0.4 and included jsp compilation problem

2002-07-25 Thread Ashish Kulkarni

Hi,
About the performance, if i use runtime include, does
it mean the each time that page it called it compiles
the included jsp??? is there any good documentation of
what is the difference between these two type of
includes??
Also where can i get this touch utility??
is there any documentation of it

Thanx for the help
Ashish


Thanx for the reply, i think it is better to use
compile time include, for performance..

--- Jason Koeninger [EMAIL PROTECTED] wrote:
 With static includes, that's Tomcat's normal
 operation.  The 
 reason being that recursively checking timestamps on
 all 
 includes could become very expensive.  You can use
 the 
 touch utility if you don't want to edit the file.
 
 Another option is to use dynamic includes with
 jsp:include... 
 if it's a major problem, but there's a performance
 impact.
 
 Best Regards,
 
 Jason Koeninger
 JJ Computer Consulting
 http://www.jjcc.com
 
 On Thu, 25 Jul 2002 08:31:12 -0700 (PDT), Ashish
 Kulkarni wrote:
 
 Hi,
 I m using tomcat4.0.4 , i found out today that when
 i
 modify the included jsp , tomcat does not recompile
 it.
 i.e.
 I have suppose a jsp called test.jsp and i include
 a
 jsp called test1.jsp.
 If for some reason i modify test1.jsp and dont
 modify
 test.jsp.
 tomcat does not recompile test.jsp so it is as if i
 am
 using old test1.jsp,
 but if i modify test.jsp (just add some space to
 make
 it look new) it works,
 so is this the correct way of working??
 how does other app server behave, or is this a bug,
 or
 need to do some settings???
 
 Ashish
 
 
 __
 Do You Yahoo!?
 Yahoo! Health - Feel better, live better
 http://health.yahoo.com
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Tomcato4.0.4 and included jsp compilation problem

2002-07-25 Thread Jason Koeninger

No, it doesn't compile the included JSP every time.  The difference 
is that with static includes, the code is included directly into the servlet 
created by the JSP.  With dynamic includes, the output of the included 
JSP is generated at the point you include it and sent to the client.  It's 
a very slight difference in performance unless, of course, you have a lot 
of nested static includes that you convert to dynamic.  Looking at the 
.java files generated in the work directory of Tomcat for your web 
application makes it more clear how static vs. dynamic works.

Touch utilities are generally included in most Unix/Linux systems.  Do 
man touch to get more information.  If you're on Windows, I'm not 
sure what the equivalent would be.

Best Regards,

Jason Koeninger
JJ Computer Consulting
http;//www.jjcc.com

On Thu, 25 Jul 2002 08:46:26 -0700 (PDT), Ashish Kulkarni wrote:

Hi,
About the performance, if i use runtime include, does
it mean the each time that page it called it compiles
the included jsp??? is there any good documentation of
what is the difference between these two type of
includes??
Also where can i get this touch utility??
is there any documentation of it

Thanx for the help
Ashish


Thanx for the reply, i think it is better to use
compile time include, for performance..

--- Jason Koeninger [EMAIL PROTECTED] wrote:
 With static includes, that's Tomcat's normal
 operation.  The 
 reason being that recursively checking timestamps on
 all 
 includes could become very expensive.  You can use
 the 
 touch utility if you don't want to edit the file.
 
 Another option is to use dynamic includes with
 jsp:include... 
 if it's a major problem, but there's a performance
 impact.
 
 Best Regards,
 
 Jason Koeninger
 JJ Computer Consulting
 http://www.jjcc.com
 
 On Thu, 25 Jul 2002 08:31:12 -0700 (PDT), Ashish
 Kulkarni wrote:
 
 Hi,
 I m using tomcat4.0.4 , i found out today that when
 i
 modify the included jsp , tomcat does not recompile
 it.
 i.e.
 I have suppose a jsp called test.jsp and i include
 a
 jsp called test1.jsp.
 If for some reason i modify test1.jsp and dont
 modify
 test.jsp.
 tomcat does not recompile test.jsp so it is as if i
 am
 using old test1.jsp,
 but if i modify test.jsp (just add some space to
 make
 it look new) it works,
 so is this the correct way of working??
 how does other app server behave, or is this a bug,
 or
 need to do some settings???
 
 Ashish
 
 
 __
 Do You Yahoo!?
 Yahoo! Health - Feel better, live better
 http://health.yahoo.com
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]