CircleSmart的个人博客

一步一个脚印

博客园 首页 新随笔 联系 订阅 管理

随笔分类 -  Struts2

摘要:1.引入相关struts2 jar包 2.web.xml 3.struts.xml 阅读全文
posted @ 2017-08-02 21:08 circlesmart 阅读(137) 评论(0) 推荐(0)

摘要:select 取值session中的内容 <s:select name="meal.mealseries.seriesid" list="#session.mealseriesList" listKey="seriesid" listValue="seriesname" /> 阅读全文
posted @ 2017-04-27 19:46 circlesmart 阅读(100) 评论(0) 推荐(0)

摘要:命名为xxAction(与Action类名相同)-validation.xml,即可使用 阅读全文
posted @ 2017-04-16 16:24 circlesmart 阅读(90) 评论(0) 推荐(0)

摘要:BaseAction DaoFactory 阅读全文
posted @ 2017-04-16 16:03 circlesmart 阅读(139) 评论(0) 推荐(0)

摘要:1.在struts.xml中配置 <constant name="struts.custom.i18n.resources" value="resourceFileName"></constant> <constant name="struts.i18n.encoding" value="utf-8 阅读全文
posted @ 2017-04-16 11:09 circlesmart 阅读(80) 评论(0) 推荐(0)

摘要:1、通过RequestAware,SessionAware,ApplicationAware获取: 在Struts2中不能直接访问Request,Session,Application元素,但是可以使用Struts2中提供的RequestAware,SessionAware,ApplicationA 阅读全文
posted @ 2017-04-09 14:13 circlesmart 阅读(256) 评论(0) 推荐(0)

摘要:1.创建数据表,与servlet中相同 2.创建web项目,添加struts2模块,url 选 /*,web.xml中会自动注册struts2,同时src下会自动生成struts2配置文件struts.xml 3.创建JDBC以及两个pojo类 4.编写登录页面login.jsp 5.编写Login 阅读全文
posted @ 2017-03-18 17:40 circlesmart 阅读(526) 评论(0) 推荐(0)