tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmanola...@yahoo.com
Subject RE: How to prevent auto reloading of changed JS page
Date Wed, 27 Sep 2000 01:44:33 GMT
> In the <Context> tag in server.xml, change reloadable="false" or something
> like that.  It's documented in the server.xml's comments I beleive.

That works only for servlets, I don't think it's possible for JSPs.
It should be easy to do that via JspInterceptor ( in 3.3 ).



Costin



> 
> - r
> 
> > -----Original Message-----
> > From: Pankaj Malviya [mailto:pankajm@internetdevices.com]
> > Sent: September 26, 2000 10:58 AM
> > To: 'Josh Knowles'
> > Cc: tomcat-dev@jakarta.apache.org
> > Subject: RE: How to prevent auto reloading of changed JS page
> >
> >
> > Hi,
> >
> > I think yo misunderstood my question. I know te server would automatically
> > load the JSP. I want to prevent reloading whenever that page is changed
> > until I restart the server. My assumption is that server spends time,
> > everytime when a request comes, finding out whether the page has newer
> > timestamp. This may not be helpful in production system.
> >
> > Pankaj
> >
> > -----Original Message-----
> > From: Josh Knowles [mailto:josh.knowles@worldwidepackets.com]
> > Sent: Tuesday, September 26, 2000 10:49 AM
> > To: 'pankajm@internetdevices.com'
> > Subject: RE: How to prevent auto reloading of changed JS page
> >
> >
> > The jsp page will get compiled as soon as someone requests it no matter if
> > the server was restarted or not so I would say that you should
> > just have the
> > person who made the change request the page through a browser that way it
> > would get compiled.  This way you don't have to restart the server.
> >
> > Hope this helps,
> >
> > Josh Knowles
> >
> > Josh Knowles
> > Web Developer
> > World Wide Packets
> > josh.knowles@worldwidepackets.com
> > (509) 242-9247
> >
> >
> > -----Original Message-----
> > From: Pankaj Malviya [mailto:pankajm@internetdevices.com]
> > Sent: Tuesday, September 26, 2000 10:36 AM
> > To: tomcat-dev@jakarta.apache.org
> > Subject: How to prevent auto reloading of changed JS page
> >
> >
> > Hi,
> >
> > I have seen that a JSP page is automatically reloaded whenever it is
> > changed. I assume this has a cost in production server. I want to prevent
> > it. Till I restart my server the changed JSP should not be
> > reloaded. I have
> > changed server.xml file to disable auto servlet loading in context but it
> > has affect only on servlet not on JSP. Any advice ?
> >
> > Pankaj
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
> 


Mime
View raw message