能详细写么
例如
1。对于<img width=32 height=32 src="65.gif"alt="$param">想将其$param替换为ApplicationResources.properties中的param的值该如何写?
像<img width=32 height=32 src="65.gif"alt="<bean:message key="param"/>">这样写肯定是不行了
2。对于
<Script language="javascript">
String s = $param;
</Script>
想将$param替换为ApplicationResources.properties中的param的值该如何写?3。对于
<% String s = $param; %>
想将$param替换为ApplicationResources.properties中的param的值该如何写?
例如
1。对于<img width=32 height=32 src="65.gif"alt="$param">想将其$param替换为ApplicationResources.properties中的param的值该如何写?
像<img width=32 height=32 src="65.gif"alt="<bean:message key="param"/>">这样写肯定是不行了
2。对于
<Script language="javascript">
String s = $param;
</Script>
想将$param替换为ApplicationResources.properties中的param的值该如何写?3。对于
<% String s = $param; %>
想将$param替换为ApplicationResources.properties中的param的值该如何写?
param=哈哈
<img width=32 height=32 src="65.gif"alt="<bean:message key="param"/>">
action.getMessageSourceAccessor().getMessage(code),或者action.getResource().Resources(request).getMessage(key)可以实现。但是这个是在什么地方写?action类中?页面上?还是form里?
String s = <bean:message key="param"/>;
</Script>
servlet-->向client写html文本数据
浏览器接收到html,显示页面并执行页面上的javascript感觉应该是<bean:message />解析在发送到客户端页面前
------------------------
不是感觉,就是这样.但是不知道<bean:message/>与<%%>两者谁的执行在前。有时间一定要阅读一下struts的源码。
------------------
不需要读struts源码就能知道--谁放在前面谁就先执行....
"ApplicationResources");
谢谢大家^o^