On Jun 30, 2008, at 8:43 AM, Shrey Banga wrote:

Hi,

While working on PlanCreator, I initially restarted it after each modification to the code which is too cumbersome for testing small changes especially in the JSPs. Thanks to Manu, I realized that there's an easier workaround to this:-
Modify <geronimo-directory>\var\catalina\conf\web.xml:
Set the development parameter to true in the init-param to org.apache.jasper.servlet.JspServlet
Edit (add if doesn't exist) the modificationTestInterval to 0
In the webapp that you intend to modify, find the web.xml and remove the servlet-name and servlet-mapping of the jsp you intend to modify and test. For example, for PlanCreator I edit the plancreator-console- tomcat-2.2-SNAPSHOT.car\WEB-INF\web.xml.
Restart the server with these settings in place.
Once this is done, you can modify the jsp in place and hit refresh to test it. It'll be recompiled each time. I think this is very handy for developing and testing deployed web applications. Can someone copy this to wiki or grant me access to it ?


Looks like Shrey has already submitted an ICLA to the ASF. Hernan, can you give Shrey access?

--kevan

Reply via email to