因为你的"value"是不固定的,直接用这个显示就行了啊<bean:write name="ActionForm" property="name" />干吗还要用<bean:message key="value" />
解决方案 »
- 一个关于axis2的问题
- 操作权限问题ssh框架
- JBOSS的SSL问题
- Spring AOP 前置运行示例 遇到一个问题
- 关于struts2 和spring 以及dwr连用问题。
- tomcat不认contains方法
- Jbuilder+weblogic构造实体BEAN关系时出现的错误
- Tomcat现场问题:系统运行一段时间后,不能编译未运行的jsp,-----急急
- 请问诸位高手,有没有可能实现:不让IE6环境下在APPLET运行开始时显示在APPLET上面的“正在载入类:XXXX”、“正在载入资源XXXXX”、“正
- 发送消息的时候rabbit mq服务处于挂掉的状态。
- 菜鸟求助:读取.png文件写入到.doc中指定位置的问题!急!
- java+oracle双循环问题,救命啊,救命啊
不知道说清楚没有.
我本来是这样解决的 但是感觉有点乱
有没有直接用strut标签的做法。?
<bean:message key='<%= stringvar %>'/>
This assumes that stringvar exists as a JSP scripting variable. If you're using the Struts-EL library, the reference looks very similar, but slightly different, like this:
<bean-el:message key="${stringvar}"/>
If you want to know how to properly use the Struts-EL tag library, there are two important things you need to know: * The Struts tag library
* The JavaServer Pages Standard tag libraryOnce you understand how to use these two, consider Struts tag attribute values being evaluated the same way the JSTL tag attribute values are. Past that, there is very little else you need to know to effectively use the Struts-EL tag library.Although the Struts-EL tag library is a direct "port" of the tags from the Struts tag library, not all of the tags in the Struts tag library were implemented in the Struts-EL tag library. This was the case if it was clear that the functionality of a particular Struts tag could be entirely fulfilled by a tag in the JSTL. It is assumed that developers will want to use the Struts-EL tag library along with the JSTL, so it is reasonable to assume that they will use tags from the JSTL if they fill their needs.