config.xml文件丢失怎么恢复?
- 提问者网友:wodetian
- 2021-04-09 07:50
- 五星知识达人网友:上分大魔王
- 2021-04-09 08:35
- 1楼网友:梦中风几里
- 2021-04-09 09:11
struts应用程序的配置
这里要配置的文件有两个 web.xml struts-config.xml
配置actionservlet(only one),使其接收应用程序收到的所有请求 分为两步,a:使用servlet元素配置servlet实例,做servlet-mapping <web-app> <servlet> <servlet-name>storefront</servlet-name> <servlet-class>完全限定的类名</servlet-class> </servlet> <servlet-mapping> <servlet-name>storefront</servlet-name> <url-pattern>*.do</url-pattern> </servlet-mapping> </web-map> 2,配置初始化参数:init-param,以name/value表示<param-name><param-value> config :默认为/web-inf/struts-config.xml config/sub1:config/... 从附加的struts配置文件中加在资程序sub1 debug:servlet的调试detail detail:digester的调试detail converthack 3,<taglib>使用struts提供的标记库时必须配置包括 <taglib-uri>识别web应用程序所使用的标记库,必须是有效的 <taglib-location>指定了标记库描述文件的位置 4,<welcome-file-list>配置在web app中输入有效的,但不完整的url所使用的default resource;不使用servlet映射 <welcome-file>起始和结束都没有/符号 5,<error-page> (<error-code> <location>) <<exception-type><location> </error-page>
struts配置文件 applicationconfig: 包含了struts配置文件中的所有信息 1, <data-source> <set-property property=““ value=““/> <data-source> 2,<form-beans> <form-bean name=“loginform“ type=“完全限定的类名,是actionform的子类“> <form-property name=““ type=““/> </form-bean> <form-bean </form-beans> 3,<global-exceptions> 4,<global-forwards>