About the STRUTS2 Web. XML configuration

Source: Internet
Author: User

<span style= "Font-size:large;" ><?xml version= "1.0" encoding= "UTF-8"?>
<! DOCTYPE Struts Public
"-//apache software foundation//dtd Struts Configuration 2.1.7//en"
"Http://struts.apache.org/dtds/struts-2.1.7.dtd" >

<struts>
<!--How to encode the request parameters--
<constant name= "struts.i18n.encoding" value= "UTF-8"/>
<!--Specifies the type of request suffix that is processed by STRUTS2. Multiple separated by commas-
<constant name= "struts.action.extension" value= "Action,do,go,qqi"/>
<!--whether to reload when Struts.xml is changed. The default value is False (used in a production environment), and the development phase is best opened-
<constant name= "Struts.configuration.xml.reload" value= "true"/>
<!--whether to use Struts's development model. The development pattern will have more debugging information. The default value is False (used in a production environment), and the development phase is best opened-
<constant name= "Struts.devmode" value= "false"/>
<!--set whether the browser caches static content. The default value is True (used in a production environment), and the development phase is best off--
<constant name= "Struts.serve.static.browserCache" value= "false"/>
<!--Specifies that spring is responsible for the creation of the Action object
<constant name= "struts.objectfactory" value= "Spring"/>
-
<!--whether to turn on dynamic method invocation--
<constant name= "Struts.enable.DynamicMethodInvocation" value= "false"/>
</struts></span>

About the STRUTS2 Web. XML configuration

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.