社区
Web 开发
帖子详情
struts2中的select标签 map['test'] 是什么含义?
newcomer1983
2009-01-08 10:23:49
看到一个例子的时候看到这样一个用法
<s:select list="map['test']"
map['test']代表什么?
...全文
368
4
打赏
收藏
struts2中的select标签 map['test'] 是什么含义?
看到一个例子的时候看到这样一个用法 <s:select list="map['test']" map['test']代表什么?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
4 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
newfristuser
2009-01-09
打赏
举报
回复
[Quote=引用 1 楼 yzsunlight 的回复:]
估计是对应的action 中有一个叫 map的属性 里有一个 key为 test的元素
[/Quote]
支持一楼的说法
mizukusa
2009-01-09
打赏
举报
回复
[Quote=引用 2 楼 lzc_job 的回复:]
map 变量中test元素
[/Quote]
是这样的,也就是map的key
lzc_job
2009-01-08
打赏
举报
回复
map 变量中test元素
yzsunlight
2009-01-08
打赏
举报
回复
估计是对应的action 中有一个叫 map的属性 里有一个 key为 test的元素
spring 高性能 代码
spring的良好的扩展性,集成度,IOC,AOP事务,已经是项目的基础条件. 整个项目只使用了spring 没有struts,没有hibernate //就极简而言,一个数据库只需要一个Service,就可以查询这个数据库的任意一张表 //以下是我的测试用例 //@
Test
查询基本类型 public void
test
Object() throws Exception{ Finder finder=new Finder("
select
id from [Users] where 1=1 "); finder.append("and userId=:userId").setParam("userId", 6); Integer id = baseFangService.queryForObject(finder, Integer.class); System.out.println(id); } //@
Test
查询日期 public void
test
ObjectDate() throws Exception{ Finder finder=new Finder("
select
cteateTime from Users where id=6 order by id"); Date id = baseFangService.queryForObject(finder, Date.class); System.out.println(id); } //@
Test
查询一个对象 public void
test
ObjectUser() throws Exception{ Finder finder=new Finder("
select
* from Users where id=6 order by id"); Users u = baseFangService.queryForObject(finder, Users.class); System.out.println(u.getName()); } //@
Test
查询分页 public void
test
MsSql() throws Exception{ Finder finder=new Finder("
select
* from Users order by id"); List
list = baseFangService.queryForList(finder, Users.class, new Page(2)); System.out.println(list.size()); for(Users s:list){ System.out.println(s.getName()); } } //@
Test
调用数据库存储过程 public void
test
Proc() throws Exception{ Finder finder=new Finder(); finder.setParam("unitId", 0); finder.setProcName("proc_up");
Map
queryObjectByProc = (
Map
) baseFangService.queryObjectByProc(finder); System.out.println(queryObjectByProc.get("#update-count-10")); } //@
Test
调用数据库函数 public void
test
Function() throws Exception{ Finder finder=new Finder(); finder.setFunName("fun_userId"); finder.setParam("userId", 6); String userName= baseFangService.queryForObjectByByFunction(finder,String.class); System.out.println(userName); }
struts2
中
select
标签
的使用
select list="#request.listinfo" headerKey="000" headerValue="请选择" id="infos" name="infos" listKey="id" listValue="name" >1、headerKey是默认值的key即选择默认值的value时,就会弹出headerKey即$("#info").val()就是header
Struts2
视频_全面开战
本Java视频教程对
Struts2
庞杂的技术点进行抽丝剥茧,提炼出企业开发的核心技术和重要技能。每个技术点都配备案例和代码,对于拦截器、
Struts2
运行流程分析、值栈等技术点的讲授更是深入解析源代码,授之以渔。
struts2
的
select
标签
struts2
的
select
标签
中
,常用的有以下几个属性: (1)
struts2
中
的
select
标签
中
,必须设置的属性只有一个,即是list。 (2)
select
标签
的list
中
必须有值,不然会报错。如果没有值,可以加上headerKey, headerValue,这样就可以通过了 其
中
,即使list
中
有值,我们也通常会加上headerKey, headerValue,即列表
中
显示的第一个
struts2
常用
标签
详解-在项目
中
使用
struts2
标签
Struts2
常用
标签
总结 一 介绍 1.
Struts2
的作用
Struts2
标签
库提供了主题、模板支持,极大地简化了视图页面的编写,而且,
struts2
的主题、模板都提供了很好的扩展性。实现了更好的代码复用。
Struts2
允许在页面
中
使用自定义组件,这完全能满足项目
中
页面显示复杂,多变的需求。
Struts2
的
标签
库有一个巨大的改进之处,
struts2
标签
库的
标签
不依赖于任何表现层技
Web 开发
81,092
社区成员
341,716
社区内容
发帖
与我相关
我的任务
Web 开发
Java Web 开发
复制链接
扫一扫
分享
社区描述
Java Web 开发
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章