Fabrice Valois wrote:
> Tomcat is looking for the .class (compiled servlet), and if found, exe
cute
> it. 
> If you really want to perform an other behavior, you have to delete th
e
> .class.
> Then, the browser will wait till the JSP is compiled.
> 
> fv
> 
> -----Message d'origine-----
> De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Envoy� : mercredi 5 d�cembre 2001 13:41
> � : [EMAIL PROTECTED]
> Objet : tomcat delay jsp translation
> 
> 
> I'm using Tomcat 4.0 (on Windows 2000): when I modify a jsp I MUST wai
t 
> (circa 5 seconds) for it to be translated and recompiled before gettin
g 
> it pointed by my browser else I get the older version. That's a proble
m 
> for my application that modifies a jsp at run time. I know that 
> translation and complitation processes take some time, but I don't wan
t 
> browser to get the older version: I'd like it to pause until such 
> processes are done so as to display the content produced by the actual
 
> jsp. I hope having been clear. Could you suggest me any idea to 
> overcame such a
> behavour.N<����r�>zǧu�sS[h-+-��ڲ�ܢf�v)�-�^S{ay��?�...�z�� z� z?
�HDU,D
> �51$���b��!�����?+޲6&hibar;j˧r?�j�!S���ǫ�W�S{^��-?٥E�
(���m���j���w(>�k&iexl;�o
> e���z��z���׫��kz�.�Ǭ?٥,""HDU�i?�i��0�[(~�(>�sz楳��z����
> 
> 
> -------------------------------------------------------------
> This Message and any attachments are confidential and intended
> solely for the addressees. And unauthorised use or dissemination 
> are prohibited. Emails are suceptible to alteration. Therefore 
> neither SWAPCOM nor any of its subsidiaries or affiliates shall 
> be liable for the message if altered, changed or falsified.  
> 
> ______________________________________________________________________
_____
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
 body
> of the message "signoff SERVLET-INTEREST".
> 
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-
resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> 
> 
Fabrice, thanks for your reply.
I can't delete .class file because its name is not known to me.

Possibly I was misleading: after the 5 seconds pass, retranslation and 
recompilation are not performed, unless such a jsp get pointed again.

Look at this experiment:
1) Open on the left the source code of a jsp: e.g. foo.jsp
2) Open a browser on the right and point to foo.jsp
3) Modify foo.jsp and repoint to it within 5 seconds
you'll notice that the browser will diplay the older version of foo.jsp 
and also the generated .class will be relative to the older foo.jsp 
even after 5 secs. Unless you repoint to foo.jsp after the 5th second, 
the .class will be the 
same.��칻�&ޱ��zf���%��lz��j���w(��݊w%�ע��^n�r��azg����('���K2
LDDI0+r�z�m���j�!�����ڲ�ܢoڭ�b��?����b�׫z�a�iQz�.�Ǭ��i��ڽ�.��&���v�-����^������jZ޲��q�!�iK!$�GzZa���
0����&�f���l�����z�m�


Reply via email to