碎片化 | 第四阶段-32-Struts2列表展示-视频

时间:2022-05-06
本文章向大家介绍碎片化 | 第四阶段-32-Struts2列表展示-视频,主要内容包括其使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。
视频内容

如清晰度低,可转PC网页观看高清版本:

http://v.qq.com/x/page/p0566r8938t.html

列表展示

/list.do->StrutsPrepareAndExecutefilter控制器->struts.xml->ListAction->Result->list.jsp

步骤:

1:编写jsp文件
      使用jstl标签C,导包jstl
        <dependency>
            <groupId>jstl</groupId>
            <artifactId>jstl</artifactId>
            <version>1.2</version>
        </dependency>
2:增加Action
        注意增加getter和setter方法
3:配置filter控制器
4:配置struts.xml返回值组件
        可使用默认值