Stuts2 "Struts.devmode" is set to true, it does not work and still requires a reboot of Tomcat

Source: Internet
Author: User
Tags xslt
After adding a constant configuration to the project's Struts.xml: <constant name= "Struts.devmode" value= "true"/>, restart the server.
In subsequent development of the project, modifying the Action.java or struts.xml still requires the reboot of Tomcat, which is the same as not configuring this constant.

Don't use
<constant name= "Struts.devmode" value= "true"/>
Change to:
<constant name= "Struts.configuration.xml.reload" value= "true"/>
It's OK.

Here is a brief introduction to the common configuration of 4 development modes---
<!--open using development mode, detailed error message--
<!--<constant name= "Struts.devmode" value= "true"/>-->
<!--specify that each request arrives and reload the resource file--
<!--<constant name= "Struts.i18n.reload" value= "true"/>-->
<!--specify that each configuration file changes automatically reload-
<!--<constant name= "Struts.configuration.xml.reload" value= "true"/>-->
<!--specify XSLT result using style sheet cache--
<!--<constant name= "Struts.xslt.nocache" value= "true"/>-->

Stuts2 "Struts.devmode" is set to true, it does not work and still requires a reboot of Tomcat

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.