`
zhl85119
  • 浏览: 12276 次
  • 来自: 杭州
社区版块
存档分类
最新评论
文章列表
1、request过滤器 这种过滤器的工作方式比较简单,大家也经常遇到,如下所示:以下是web.xml文件配置方式:   <filter> <filter-name>myFilter</filter-name> <filter-class>packagename.MyFilterName</filter-class> </filter> ...
struts.action.extension The URL extension to use to determine if the request is meant for a Struts action 用URL扩展名来确定是否这个请求是被用作Struts action,其实也就是设置 action的后缀,例如login.do的'do'字。 struts.configuration The org.apache.struts2.config.Conf ...

springMVC实例

Eclipse 中创建一个工程springMVC , 然后按照下面的步骤添加文件 。 配置web.xml文件 在 springMVC 的WebContent目录下创建web.xml。在使用Struts 2时,需要在web.xml文件配置FilterDispatcher,在使用Spring的MVC框架时,也需要配置web.xml文件,代码如下: <?xml version="1.0" encoding="UT ...
Global site tag (gtag.js) - Google Analytics