Re: Refresh JSP in Tomcat 5.5

2007-08-26 Thread hezjing
Hi!

Setting reloading=true does not solve the problem :-(

Here are the steps I performed,

1) Reinstalled Tomcat 5.5.23 on Windows XP
2) Added the following parameters to JspServlet in Tomcat 5.5\conf\web.xml
development=false
reloading=true
checkInterval=3
3) Started Tomcat service
4) Deployed myapp for first time
5) Accessed myapp from IE
6) Modified the title of Tomcat 5.5\webapps\myapp\index.jsp
7) Accessed myapp from IE after 3 seconds and it is still showing the old title!

The Tomcat 5.5\work\Catalina\localhost\myapp\org\apache\jsp\index_jsp.java
is still showing the old title.

BTW, the reloading parameter is not listed as one of the supporting
parameters in the comment of web.xml (?).

Do you have any other idea of what could be the problem?


On 8/24/07, Christopher Schultz [EMAIL PROTECTED] wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Hezjing,

 hezjing wrote:
  In Tomcat 5.5\conf\web.xml, I have defined modificationTestInterval=0
  and that the context's reloadable=true.

 Maybe try 'reloading=true' instead?

 http://tomcat.apache.org/tomcat-5.5-doc/jasper-howto.html

 - -chris

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.7 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iD8DBQFGztUh9CaO5/Lv0PARAlA2AKCc1wDd4K8YJlDU8RKImvPhZYX5KwCeI+Hb
 6WyJhi9YQsTVkcR+MqFnp2A=
 =017s
 -END PGP SIGNATURE-

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 

Hez

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Refresh JSP in Tomcat 5.5

2007-08-26 Thread hezjing
Hi!

If I understood the comment in web.xml correctly, by default, the
JspServlet is initialized with the following parameters

development=true
modificationTestInterval=4

Aren't this sufficient to reload the JSP after 4 seconds the JSP is updated?



On 8/27/07, hezjing [EMAIL PROTECTED] wrote:
 Hi!

 Setting reloading=true does not solve the problem :-(

 Here are the steps I performed,

 1) Reinstalled Tomcat 5.5.23 on Windows XP
 2) Added the following parameters to JspServlet in Tomcat 5.5\conf\web.xml
 development=false
 reloading=true
 checkInterval=3
 3) Started Tomcat service
 4) Deployed myapp for first time
 5) Accessed myapp from IE
 6) Modified the title of Tomcat 5.5\webapps\myapp\index.jsp
 7) Accessed myapp from IE after 3 seconds and it is still showing the old 
 title!

 The Tomcat 5.5\work\Catalina\localhost\myapp\org\apache\jsp\index_jsp.java
 is still showing the old title.

 BTW, the reloading parameter is not listed as one of the supporting
 parameters in the comment of web.xml (?).

 Do you have any other idea of what could be the problem?


 On 8/24/07, Christopher Schultz [EMAIL PROTECTED] wrote:
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
 
  Hezjing,
 
  hezjing wrote:
   In Tomcat 5.5\conf\web.xml, I have defined modificationTestInterval=0
   and that the context's reloadable=true.
 
  Maybe try 'reloading=true' instead?
 
  http://tomcat.apache.org/tomcat-5.5-doc/jasper-howto.html
 
  - -chris
 
  -BEGIN PGP SIGNATURE-
  Version: GnuPG v1.4.7 (MingW32)
  Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
  iD8DBQFGztUh9CaO5/Lv0PARAlA2AKCc1wDd4K8YJlDU8RKImvPhZYX5KwCeI+Hb
  6WyJhi9YQsTVkcR+MqFnp2A=
  =017s
  -END PGP SIGNATURE-
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --

 Hez



-- 

Hez

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Refresh JSP in Tomcat 5.5

2007-08-26 Thread hezjing
Hi Tim

I do not have Firefox on my computer.

Yes, I did do a hard-refreshing and this is what I tried,

1) Closed IE6.
2) From IE6, deleted all offline content and cookies.
3) Accessed myapp from IE6 and it is still showing the old title!

..


On 8/27/07, Tim Lee [EMAIL PROTECTED] wrote:
 I might be completely off course, but...

 Does the title stay the same (as in your IE case) when you use Firefox as 
 well?
 If it changes in Firefox, it might be a problem of IE browser caching problem.
 Have you tried hard-refreshing, or closing the browser and opening again?


 Timothy Wonil Lee

 Java Developer
 Koorong Books (http://www.koorong.com/)

 http://www.google.com/reader/shared/16849249410805339619
 http://timundergod.blogspot.com

 -Original Message-
 From: hezjing [mailto:[EMAIL PROTECTED]
 Sent: Monday, 27 August 2007 1:59 PM
 To: Tomcat Users List
 Subject: Re: Refresh JSP in Tomcat 5.5

 Hi!

 Setting reloading=true does not solve the problem :-(

 Here are the steps I performed,

 1) Reinstalled Tomcat 5.5.23 on Windows XP
 2) Added the following parameters to JspServlet in Tomcat 5.5\conf\web.xml
 development=false
 reloading=true
 checkInterval=3
 3) Started Tomcat service
 4) Deployed myapp for first time
 5) Accessed myapp from IE
 6) Modified the title of Tomcat 5.5\webapps\myapp\index.jsp
 7) Accessed myapp from IE after 3 seconds and it is still showing the old 
 title!

 The Tomcat 5.5\work\Catalina\localhost\myapp\org\apache\jsp\index_jsp.java
 is still showing the old title.

 BTW, the reloading parameter is not listed as one of the supporting
 parameters in the comment of web.xml (?).

 Do you have any other idea of what could be the problem?


 On 8/24/07, Christopher Schultz [EMAIL PROTECTED] wrote:
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
 
  Hezjing,
 
  hezjing wrote:
   In Tomcat 5.5\conf\web.xml, I have defined modificationTestInterval=0
   and that the context's reloadable=true.
 
  Maybe try 'reloading=true' instead?
 
  http://tomcat.apache.org/tomcat-5.5-doc/jasper-howto.html
 
  - -chris
 
  -BEGIN PGP SIGNATURE-
  Version: GnuPG v1.4.7 (MingW32)
  Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
  iD8DBQFGztUh9CaO5/Lv0PARAlA2AKCc1wDd4K8YJlDU8RKImvPhZYX5KwCeI+Hb
  6WyJhi9YQsTVkcR+MqFnp2A=
  =017s
  -END PGP SIGNATURE-
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --

 Hez

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 !DSPAM:46d24c4c35371427112096!


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 

Hez

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Refresh JSP in Tomcat 5.5

2007-08-26 Thread Brian Munroe
On 8/26/07, hezjing [EMAIL PROTECTED] wrote:
 Hi!

 If I understood the comment in web.xml correctly, by default, the
 JspServlet is initialized with the following parameters

 development=true
 modificationTestInterval=4

 Aren't this sufficient to reload the JSP after 4 seconds the JSP is updated?

That is the way I read the comments too.  What if you change
modificationTestInterval back to 0?

I have the following configuration (in the JSP Servlet element) and
changes to my JSPs are picked up immediately:

init-param
param-namedevelopment/param-name
param-valuetrue/param-value
/init-param
init-param
param-namemodificationTestInterval/param-name
param-value1/param-value
/init-param
init-param
param-namecheckInterval/param-name
param-value1/param-value
/init-param

Also, you are restarting the container after each web.xml modification, right :)

-- brian

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Refresh JSP in Tomcat 5.5

2007-08-26 Thread Brian Munroe
BTW, with the configuration I showed below, the JSP does not get
translated to a *.java file until I first access the page.

On 8/26/07, Brian Munroe [EMAIL PROTECTED] wrote:
 On 8/26/07, hezjing [EMAIL PROTECTED] wrote:
  Hi!
 
  If I understood the comment in web.xml correctly, by default, the
  JspServlet is initialized with the following parameters
 
  development=true
  modificationTestInterval=4
 
  Aren't this sufficient to reload the JSP after 4 seconds the JSP is updated?

 That is the way I read the comments too.  What if you change
 modificationTestInterval back to 0?

 I have the following configuration (in the JSP Servlet element) and
 changes to my JSPs are picked up immediately:

 init-param
 param-namedevelopment/param-name
 param-valuetrue/param-value
 /init-param
 init-param
 param-namemodificationTestInterval/param-name
 param-value1/param-value
 /init-param
 init-param
 param-namecheckInterval/param-name
 param-value1/param-value
 /init-param

 Also, you are restarting the container after each web.xml modification, right 
 :)

 -- brian


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Refresh JSP in Tomcat 5.5

2007-08-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hezjing,

hezjing wrote:
 In Tomcat 5.5\conf\web.xml, I have defined modificationTestInterval=0
 and that the context's reloadable=true.

Maybe try 'reloading=true' instead?

http://tomcat.apache.org/tomcat-5.5-doc/jasper-howto.html

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGztUh9CaO5/Lv0PARAlA2AKCc1wDd4K8YJlDU8RKImvPhZYX5KwCeI+Hb
6WyJhi9YQsTVkcR+MqFnp2A=
=017s
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]