您好,欢迎来到[编程问答]网站首页   源码下载   电子书籍   软件下载   专题
当前位置:首页 >> 编程问答 >> Java >> struts配置

struts配置

来源:网络整理     时间:2016/8/9 21:50:03     关键词:

关于网友提出的“ struts配置”问题疑问,本网通过在网上对“ struts配置”有关的相关答案进行了整理,供用户进行参考,详细问题解答如下:

问题: struts配置
描述:

struts2.1.0和struts2.1.1的web.xml配置文件怎么写


解决方案1:

struts2和web.xml配置如下


xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">


struts2

org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter



struts2
/*


index.jsp


解决方案2:

在struts的源里面有例子,你直接从里面的例子李拷贝就OK,这些东西没必要记住,你只要知道在那里能以最快的速队弄过来,而且还在控制之中弄过来的。比如说hibernate,struts,spring都有自己的参考例子。为何不看看呢???

解决方案3:

具体看官方文档。很简单的。

  struts2
  org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter


  struts2
   /*

具体看
http://struts.apache.org/2.1.8.1/docs/create-struts-2-web-application-with-artifacts-in-web-inf-lib-and-use-ant-to-build-the-application.html

解决方案4:

  
   struts2   
     
       org.apache.struts2.dispatcher.FilterDispatcher   
   
  
       
      config     
      struts-default.xml,struts-plugin.xml,/WEB-INF/struts.xml     
   
  
  
  
    
   struts2   
   /*     
  

以上介绍了“ struts配置”的问题解答,希望对有需要的网友有所帮助。
本文网址链接:http://www.codes51.com/itwd/3167104.html

相关图片

相关文章