zoukankan      html  css  js  c++  java
  • Struts2 使用基本流程

    使用流程:

    1、引入Struts 2的库文件:

    将“common-logging-1.0.4.jar”、“freemaker-2.3.8.jar”、“struts2-core-2.0.11.1.jar”、“xwork-2.0.4.jar”和“ognl-2.6.11.jar”类库复制到Web项目的WEB-INF/lib目录下。

    2、编辑Web项目中的“web.xml”配置文件,在配置文件中增加Struts 2核心Filter的配置:

    web.xml配置文件

    3、新建控制器类Action

    4、配置Action,修改struts.xml,其中包括指定Action的实现类以及Action处理结果与视图资源文件之间的映射:

    struts.xml配置文件


  • 相关阅读:
    Linux命令——find
    Linux命令——locate
    python模块:datetime
    python模块:json
    python模块:shelve
    python模块:shutil
    python模块:sys
    python:OS模块
    str.index()与str.find()比较
    python模块:re
  • 原文地址:https://www.cnblogs.com/chaosimple/p/3442108.html
Copyright © 2011-2022 走看看