1.<html:redio>标签怎么默认选中,就象html里加个checked一样?
2.怎么把ApplicationResources.properties里的内容显示到bean里?就象<bean:message>一样
2.怎么把ApplicationResources.properties里的内容显示到bean里?就象<bean:message>一样
解决方案 »
- 用java实现web简版机房环境监测 ,求高手给小弟解答
- 怎样通过循环给select标签添加值?
- 谁能帮帮忙这是我们的JSP实习周计划
- tomcat如何连接Oracle??
- jsp页面间数组传值???
- struts2 radio 标签 判断是否选择
- JSP论坛,页面风格像动网
- 整数问题
- jsp遍的即时新闻系统不能显示中文???
- POI导出WORD的问题。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
- struts动态表单问题,很急!大家帮帮忙,谢谢了!!在线等………………
- 请教:Struts中bean标签使用问题
new ActionMessage("ApplicationResources.properties内容");
如果是默认的文件不用配置.
比如ApplicationResources.properties里有
logon.username=User Name
怎么用
System.out.println(new ActionMessage("logon.username"));
打印出来的是logon.username[]
怎么能打印出来后面的User Name啊?
不能用这个打印
只能是把logon.username的值传回JSP页面上,在类里不能打印出来的,传回到JSP页面上的是"User Name"
我主要是想在bean里用不传到jsp里
我用这个方法实现了
ResourceBundle bundle = ResourceBundle.getBundle("ApplicationResources");
String message = bundle.getString("message.logon");
System.out.println(message);但感觉应该有简单点的