基于SSH整合框架的查询操作

  • 基本步骤

    新建index.jsp

    新建Dao层代码

    新建Service层代码

    编写Action

    在Web.xml中配置多个Spring配置文件

    在SpringBean的配置文件中配置Bean

    配置Struts.xml

    新建展示页面,导入s标签

    编写展示代码

  • 代码示例 

    新建index.jsp

      

      

    新建Dao层代码

      

      

    新建Service层代码

      

    编写Action

      

      

      

      

    在Web.xml中配置多个Spring配置文件

      

    在SpringBean的配置文件中配置Bean

      

      

      

    配置Struts.xml

      

    新建展示页面,导入s标签

      

      

    编写展示代码

      

      

posted on 2017-02-16 13:43  sillypasserby  阅读(320)  评论(0)    收藏  举报

导航