Websphere6.1默认的JSP编译器为JDK1.3 BT啊!!!!!
所以必须手动更改为1.5,否则不能识别JDK1.5的语法
解决办法如下:
1、找到 E:/del/WebSphere/AppServer/profiles/BBS/config/cells/0158b9e7271b4d9Node02Cell/applications/BBS2007_war.ear/deployments/BBS2007_war/BBS2007.war/WEB-INF/ibm-web-ext.xmi
在最后面的 </webappext:WebAppExtension> 前添加下面一行:
<jspAttributes xmi:id="JSPAttribute_113" name="jdkSourceLevel" value="15"/>
2、找到E:/del/WebSphere/AppServer/profiles/BBS/installedApps/0158b9e7271b4d9Node02Cell/BBS2007_war.ear/BBS2007.war/WEB-INF/ibm-web-ext.xmi
在最后面的 </webappext:WebAppExtension> 前添加下面一行:
<jspAttributes xmi:id="JSPAttribute_113" name="jdkSourceLevel" value="15"/>
然后删除编辑产生的缓存文件,重新启动服务器,一切OK
本文详细介绍了如何解决使用WebSphere6.1部署的JSP应用中遇到的JSP编译器默认为JDK1.3,无法识别JDK1.5语法的问题。通过修改配置文件和重启服务器,可以成功将JSP编译器更改为JDK1.5,解决自动装箱和拆箱问题。
613

被折叠的 条评论
为什么被折叠?



