Sturts2 configuration file details-return the configuration of JSON data

Source: Internet
Author: User
Tags i18n
<? XML version = "1.0" encoding = "UTF-8"?> <! Doctype struts public "-// Apache Software Foundation // DTD struts configuration 2.0 // en" "http://struts.apache.org/dtds/struts-2.0.dtd"> <struts> <constant name = "struts. objecttypedeterminer "value =" notiger "/> <constant name =" struts. objectfactory "value =" Spring "/> <constant name =" struts. objectfactory. spring. autowire "value =" name "/> <constant name =" struts. UI. theme "value =" Gem "/> <constant name =" struts. m Ultipart. maxsize "value =" 1000000000 "type =" codeph "text ="/codeph "/> <constant name =" struts. custom. i18n. resources "value =" applicationresources, processmessages, businessaffect "/> <constant name =" struts. i18n. encoding "value =" UTF-8 "/> <constant name =" struts. ognl. allowstaticmethodaccess "value =" true "/> <include file =" struts-default.xml "/> <package name =" default "extends =" struts-Default "> <interceptors> <Interceptor-Stack name = "defaultst Ack "> <Interceptor-ref name =" exception "/> <Interceptor-ref name =" alias "/> <Interceptor-ref name =" servletconfig "/> <Interceptor-ref name = "prepare"/> <Interceptor-ref name = "i18n"/> <Interceptor-ref name = "chain"/> <Interceptor-ref name = "modeldriven"/> <Interceptor-ref name = "fileupload"/> <Interceptor-ref name = "staticparams"/> <Interceptor-ref name = "Params"/> <Interceptor-ref name =" conversionerror "/> <Interceptor-ref name = "validation"> <Param name = "excludemethods"> input, back, cancel, browse </param> </Interceptor-ref> </Interceptor-stack> </interceptors> <default-interceptor-ref name = "defaultstack"/> <global-Results> <result name = "error" type = "dispatcher">/common/error. JSP </result> </Global-Results> <global-exception-mappings> <exception-mapping exception = "Java. lang. exception "result =" globalexception "/> </Global-exception-mappings> </package> <include file = "struts-common.xml"/> <include file = "struts-system.xml"/> <include file = "struts-navigate.xml"/> <include file = "struts-processManagement.xml"/> <include file = "struts-bulletin.xml"/> <include file = "struts-workDesktop.xml"/> <include file = "struts-processMonitor.xml"/> <include file = "struts-DRPManagement.xml"/> <include file = "struts-emergencyproces S. XML "/> <include file =" struts-importantInfo.xml "/> <include file =" struts-emergency.xml "/> <include file =" struts-businessAffect.xml "/> <include file =" struts-taskRemind.xml "/> <! -- Task reminder Management --> <include file = "struts-bigEvent.xml"/> <! -- Event --> <include file = "struts-historyCrewCall.xml"/> <! -- Recruitment history --> <include file = "struts-CrewCall.xml"/> <! -- Personnel recruitment --> <include file = "struts-importantInfoReport.xml"/> <include file = "struts-emergencyReport.xml"/> <! -- Incident reporting --> <include file = "struts-publicInfo.xml"/> </struts>

 
<? XML version = "1.0" encoding = "UTF-8"?> <! Doctype struts public "-// Apache Software Foundation // DTD struts configuration 2.0 // en" "http://struts.apache.org/dtds/struts-2.0.dtd"> <struts> <package name = "emergencyprocess" namespace = "/emergencyprocess" extends = "JSON-Default"> <action name = "* initialconditions" class = "initialconditionsaction" method = "{1} initialconditions"> <result name = "Monitor">/emergencyprocess /initialconditionsmonitor. JSP </R Esult> <result name = "cammander">/emergencyprocess/initialconditionscammander. JSP </result> <result name = "Rs" type = "JSON"> <Param name = "root"> success </param> </result> <result name =" list "type =" JSON "> <Param name =" root "> initialconditionslist </param> </result> <result name =" maplist "type =" JSON "> <Param name = "root"> maplist </param> </result> </Action> <action name = "* faultlocalization" class = "faultloca Lizationaction "method =" {1} faultlocalization "> <result>/emergencyprocess/faultlocalization. JSP </result> <result name = "Rs" type = "JSON"> <Param name = "root"> success </param> </result> <result name =" list "type =" JSON "> <Param name =" root "> faultlocalizationlist </param> </result> <result name =" maplist "type =" JSON "> <Param name = "root"> maplist </param> </result> <result name = "errordetail" type = "JSON"> <Param Name = "root"> errordetaillist </param> </result> </Action> <action name = "* damageevaluation" class = "damageevaluationaction" method = "{1} damageevaluation"> <result>/emergencyprocess/damageevaluation. JSP </result> <result name = "Rs" type = "JSON"> <Param name = "root"> success </param> </result> <result name =" list "type =" JSON "> <Param name =" root "> damageevaluationlist </param> </result> <result name =" maplist "Type = "JSON"> <Param name = "root"> maplist </param> </result> </Action> <action name = "* decisionmaking" class = "decisionmakingaction" Method = "{1} decisionmaking"> <result>/emergencyprocess/decisionmaking. JSP </result> <result name = "show">/emergencyprocess/show/decisionmaking. JSP </result> <result name = "Rs" type = "JSON"> <Param name = "root"> success </param> </result> <result name =" list "type =" JSON "> <Param name =" Root "> decisionmakinglist </param> </result> <result name =" maplist "type =" JSON "> <Param name =" root "> maplist </param> </ result> <! -- Execute the task --> <result name = "showexectask" type = "Redirect"> <Param name = "location">/workdesktop/showexectaskinstance. action </param> <Param name = "workitem. workitemid ">$ {workitem. workitemid} </param> <Param name = "flagsubmitevent" >$ {flagsubmitevent} </param> </result> </Action> <action name = "deleteevent" class =" eventaction "method =" deleteevent "> <result name =" success "type =" JSON "> <Param name =" includeproperties "> result </param> </result> </ action> <action name = "closeevent" class = "eventaction" method = "closeevent"> <result name = "success" type = "JSON"> <Param name = "includeproperties"> result </param> </result> </Action> <action name = "accessjudge" class = "eventaction" method = "accessjudge"> <result name = "success"> /emergencyprocess/eventmanage. JSP </result> <result name = "error">/common/errorpage. JSP </result> </Action> <action name = "deletedecisionmaking" class = "decisionmanageaction" method = "deletedecisionmaking"> <result name = "success" type = "JSON"> <Param name = "includeproperties"> result, message </param> </result> </Action> <action name = "isallowdelete" class = "decisionmanageaction" method = "isallowdelete"> <result name = "success" type = "JSON"> <Param name = "root"> result </param> </result> </Action> <action name = "saveevent" class = "eventaction" method =" saveevent "> <result name =" success "type =" JSON "> <Param name =" includeproperties "> result </param> </result> </Action> <action name = "lookevent" class = "eventaction" method = "lookevent"> <result name = "success"> emergencyprocess/event. JSP </result> <result name = "error"> common/error. JSP </result> </Action> <action name = "geteventidbymakingid" class = "decisionmanageaction" method = "geteventidbymakingid"> <result name = "success" type = "JSON"> <Param name = "root"> id </param> </result> </Action> </package> </struts>


 

This is a configuration file of the struts2 project and a configuration file related to the description.

I am confused about the <Param name = "includeproperties"> result and message </param> parameter. I don't know what it means, do you know?

Develop BC & A notes:

Action-> (Service->) serviceimp-> Dao + JavaBean-> DB

............

..........

......

..

I went to Google and found out the answer and posted it. To be the same person as me who had doubts today:

 

Below is the bean injection file (spring)

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"    "http://www.springframework.org/dtd/spring-beans.dtd"><beans><import resource="com.hp.ts.bca.emergencyProcess.service.xml" /><import resource="com.hp.ts.bca.common.service.xml" /><import resource="com.hp.ts.bca.system.service.xml" /><import resource="com.hp.ts.bca.bulletin.service.xml" /><bean id="initialConditionsAction"class="com.hp.ts.bca.emergencyProcess.web.action.InitialConditionsAction"singleton="false"><property name="submitEventService" ref="submitEventService" /><property name="initialConditionsService" ref="initialConditionsService" /></bean><bean id="faultLocalizationAction"class="com.hp.ts.bca.emergencyProcess.web.action.FaultLocalizationAction"singleton="false"><property name="submitEventService" ref="submitEventService" /><property name="faultLocalizationService" ref="faultLocalizationService" /><property name="errorTypeService" ref="errorTypeService" /></bean><bean id="damageEvaluationAction"class="com.hp.ts.bca.emergencyProcess.web.action.DamageEvaluationAction"singleton="false"><property name="submitEventService" ref="submitEventService" /><property name="damageEvaluationService" ref="damageEvaluationService" /><property name="emergencyProgrammeService" ref="emergencyProgrammeService" /><property name="faultLocalizationService" ref="faultLocalizationService" /></bean><bean id="decisionMakingAction"class="com.hp.ts.bca.emergencyProcess.web.action.DecisionMakingAction"singleton="false"><property name="workItemService" ref="workItemService" /><property name="processService" ref="processService" /><property name="taskInstanceService" ref="taskInstanceService" /><property name="submitEventService" ref="submitEventService" /><property name="decisionMakingService" ref="decisionMakingService" /><property name="emergencyProgrammeService" ref="emergencyProgrammeService" /></bean><bean id="eventAction" class="com.hp.ts.bca.emergencyProcess.web.action.EventAction"singleton="false"><property name="submitEventService" ref="submitEventService" /><property name="systemParameterService" ref="parameterService" /><property name="systemLogService" ref="systemLogService" /><property name="userService" ref="userService" /><property name="decisionManageService" ref="decisionManageService" /></bean><bean id="decisionManageAction"class="com.hp.ts.bca.emergencyProcess.web.action.DecisionManageAction"singleton="false"><property name="decisionMakingService" ref="decisionManageService" /><property name="systemParameterService" ref="parameterService" /><property name="userService" ref="userService" /></bean></beans>

 

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.