读书人

如何样在jsp页面的lt;% %gt;中得到后台Spr

发布时间: 2012-02-14 19:19:19 作者: rapoo

怎么样在jsp页面的<% %>中得到后台Spring放入map中的值?
怎么样在jsp页面的 <% %> 中得到后台Spring放入map中的值?Map <Object, Object> model = super.getModel();
model.put( "key ", "aaaaa ");


在页面可以 <input type= "text " value= " <c:out value= "${key} " /> " /> 得到aaaaa!
但我现在想在页面的 <% %> 中得到  要怎么得!!???????????

[解决办法]
后台吧map放在request或者session里面,jsp里面再获取就是了
[解决办法]
同意楼上的
[解决办法]
WebApplicationContext appContext ...
[解决办法]
<input type= "text " value= "${mapForm.mapAll.key} " />

读书人网 >Java Web开发

热点推荐