2016年3月17日

摘要: 一、 1、两个参数都是int类型() 例子: 1 < select id="searchClassAllNum" resultType="int"> select count(*) from parkclass pc join parkclasstag pct on(pc.classtaglevel 阅读全文
posted @ 2016-03-17 19:41 xiaohehe2 阅读(1427) 评论(0) 推荐(0)

2016年3月15日

摘要: 1、springMVC:jsp页面向controller传值,例如;park/findByTag?tag=大大班 controller乱码, 解决方案: String tag=request.getParameter("tag"); tag= new String(tag.getBytes("ISO 阅读全文
posted @ 2016-03-15 21:11 xiaohehe2 阅读(153) 评论(0) 推荐(0)

2016年3月4日

摘要: dispatcher类型是用于转发的Result,可以将请求转发给JSP。这种类型的Result对应的类为 ServletDispatcherResult,它是Struts2默认的Result类型,该默认行为是定义该Result时,通过 default="true"指定的 。 在此之前,我们使用的R 阅读全文
posted @ 2016-03-04 19:44 xiaohehe2 阅读(546) 评论(0) 推荐(0)
摘要: Struts2中获取Session的方式有3种,大家掌握其中任何一种都可以。 通过ActionContext.getContext().getSession()获得Session,注意其返回类型为 Map<String,Object>。事实上,Session对象存储数据的方式通Map一致,因此Str 阅读全文
posted @ 2016-03-04 19:11 xiaohehe2 阅读(891) 评论(0) 推荐(0)

导航