tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anil K. Vijendran" <Anil.Vijend...@eng.sun.com>
Subject Re: persistance of generated servlet.
Date Fri, 07 Apr 2000 22:49:06 GMT
Hmmm.... this issue has a little bit more to do than with persistence
which is where you ran into it.

In general if you change the TLD file, the servlet will not be
regenerated. The only dependencies that are being checked for is if the
JSP file is out of date with respect to the generated servlet.

MANDAR RAJE wrote:

> Hi,
>
>  I am still in a catching-up phase so there is a possibility
> that this issue might have been discussed before.
>
>  It looks to me that having generated servlets persist acorss
> multiple server invocations is not necessarily desirable. It
> does amount to performance gains (no need to compile JSPs
> that haven't changed) but on the other hand it causes lack of
> transparency.
>
>  For example, I make a change to a tld file. I restart the
> server and invoke the JSP, but get the old result back.
> This is not only annoying but it is wrong. For example on
> my first invocation the resulting HTML is:
>
>   <%= \"foo\" + \"bar\" %>
>
>  I notice the error and change the TLD so that the tag
> attribute accepts a runtime value. Then I restart the server
> and invoke the JSP again with the same result where as the
> actual result should be:
>
>  foobar
>
>  Isn't this wrong?
>
>  It is possible that there is a config parameter somewhere
> to set persistance to false. But it should not be "true" by
> default.
>
> Thanks,
> Mandar.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org

--
Peace, Anil +<:-)



Mime
View raw message