tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Christiansen" <Nathan_Christian...@tni.com>
Subject RE: How do I reload a Servlet from a JSP page?
Date Tue, 23 Dec 2003 17:58:16 GMT
Thank you for your response, but I already have my context set to automatically reload servlets
on changes to the webapp as this is a testing environment.

I am wondering how I can force a reload from a JSP page like the manager app does.

-- Nathan Christiansen
   Tahitian Noni International
   http://www.tahitiannoni.com


-----Original Message-----
From: Edson Alves Pereira [mailto:eapereira@panamericano.com.br]
Sent: Tuesday, December 23, 2003 11:51 AM
To: 'Tomcat Users List'
Subject: RE: How do I reload a Servlet from a JSP page?


	Servlets are reloaded when your servlet engine is restarted or you
configure you webapp to always reaload servlets ( this is very slow ).

> ----------
> De: 	Nathan Christiansen[SMTP:Nathan_Christiansen@tni.com]
> Responder: 	Tomcat Users List
> Enviada: 	terça-feira, 23 de dezembro de 2003 14:46
> Para: 	tomcat-user@jakarta.apache.org
> Assunto: 	How do I reload a Servlet from a JSP page?
> 
> I am using a JSP page to add and change properties files for my servlet in
> my development and testing environments.
> 
> I have Tomcat (4.1.24) set up to reload the servlet on changes to the
> context (i.e. reloadable="true"). When I change an existing properties
> file, Tomcat responds by reloading the servlet and therefore loading the
> changes.
> 
> However, when I add a new properties file (in the WEB-INF/classes
> directory), Tomcat never reloads the servlet. Even when I change that new
> properties file Tomcat doesn't reload it until the servlet gets reloaded
> by some other means.
> 
> So my question is:
> 
> How do I reload a servlet from a JSP page?
> 
> 
> 
> -- Nathan Christiansen
>    Tahitian Noni International
>    http://www.tahitiannoni.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message