spring-web-mvc を使用してアプリケーションを開発しています...
今私のコントローラでは、次のように返されます:
public class InterfacesManageController implements Controller {
public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {
Map<String, Object> myModel = new HashMap<String, Object>();
myModel.put("interfacesList", this.interfacesSecurityProcessor.findByAll(0, null, null, null));
return new ModelAndView("common", "model", myModel);
}
今、私のJSPには次のコードが含まれています:
<c:forEach items="${model.interfacesList}" var="prod">
<c:out value="${prod.id}"/> <c:out value="${prod.name}"/><br><br>
</c:forEach>
Tomcat 6.0.20、ognl 2.6.11 がある Windows プラットフォームでこれを実行すると、次のような正確な出力が得られます。
117 eth1
118 eth1
119 eth0
しかし、Tomcat 5.5 を使用している unix (cent os) プラットフォームに war ファイルをデプロイすると、ognl 式が実行されず、次のような出力が得られます。
${prod.id} ${prod.name}
ognl式のバージョンとTomcatのバージョンの問題は何ですか?
前もって感謝します...