使用jsp在request.getAttribute标记内传递值
希望有人能帮我解决这个问题: 如何在getAttribute标记内传递值?例如,我一直在尝试这样做:使用jsp在request.getAttribute标记内传递值,jsp,struts,javabeans,Jsp,Struts,Javabeans,希望有人能帮我解决这个问题: 如何在getAttribute标记内传递值?例如,我一直在尝试这样做: (request.getAttribute(<bean:write name="region" property="id" />) == "true") (request.getAttribute()=“true”) 但这不起作用,我知道我的bean的价值:write是正确的 那么,为什么这样做的正确原因是什么?我是否可以定义bean:在getAttribute标记外部写入,然
(request.getAttribute(<bean:write name="region" property="id" />) == "true")
(request.getAttribute()=“true”)
但这不起作用,我知道我的bean的价值:write是正确的
那么,为什么这样做的正确原因是什么?我是否可以定义bean:在getAttribute标记外部写入,然后使用不同的方式将其放入其中?像这样:
<bean:define id="someValue" name="region" property="id"/>
(request.getAttribute(${someValue}) == "true") ?
(request.getAttribute(${someValue})==“true”)?
谢谢
问候
弗朗索瓦好的,我让它工作了。。。(request.getAttribute(someValue)=“true”)为什么要这样做?