Hello Mohammed,
This is something that got all of us fooled. It all depends on your
servlet engine. For exemple, you have to shut down and restart JavaWebServer
for the changes to occur, but Jakarta Tomcat from http://jakarta.apache.org
is configured by default to reload the servlet when it is modified (ie
recompiled)
What happens is this : the first time you start the servlet engine, it
instantiates the servlets. Some engines will check if the servlet has
changed everytime the servlet is called (like Tomcat) and some won't (like
JWS).
I've read in the TomCat doc that performances are improved if the engine
doesn't check if the servlet has been modified before running it, which
makes sense. That explains why most servlet engines don't reload servlets
after modification.
Second thing, you might want to include the following tag in the
<head></head> part of your html code :
<meta http-equiv="pragma" content="no-cache">
This tag prevents browsers (at least version 4 and above) to cache webpages
wich can be a pain when you're working with dynamically generated pages.
Best regards, Arnaud "Excuse my bad english" Dostes.
=================================================
The alternative side of the web http://www.twomadcows.com
L'alternatif du web http://www.twomadcows.com
----- Original Message -----
From: "Mohammed Faizal" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 07, 2000 11:45 AM
> Hi,
>
> I'm a novice in servlet programming. After modifying the servlet class, I
> still get the same old output in the browser (not refreshing). Please
help.
>
> Thanks,
>
> Faizal
>
>
___________________________________________________________________________
> 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
___________________________________________________________________________
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