日期:2014-05-18  浏览次数:20605 次

怎么样在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} " />