struts1配置文件解析.docVIP

  • 4
  • 0
  • 约4.84千字
  • 约 4页
  • 2017-08-05 发布于河南
  • 举报
struts1.2配置文件详解:? struts1.2配置文件详解 2010-03-19 17:39 struts配置文件 web.xml是web应用的发布描述文件。。。 struts-config.xml是struts应用专有的配置文件,可以根据需要给这个配置文件起其它的文件名。 一、web配置文件web.xml servlet元素必须出现在servlet-mapping元素前面,servlet-mapping元素必须出现在taglib元素的前面。 init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param init-param元素用来声明servlet初始化参数,config参数是配置struts的ActionServlet专有的,用来设置struts配置文件的相对路径。 welcome-file-list。。。不能直接把struts的Action作为欢迎文件,以下是在欢迎文件中调用struts action。 global-forwards forward name=welcome path=HelloWorld.do/ /global-forwards body logic:forward name

文档评论(0)

1亿VIP精品文档

相关文档