websphere下jsp页面不支持泛型问题
2012-06-15 17:07
337 查看
WAS6.1中JSP引擎配置参数 由于WAS6.1采用JDK5.0,所以如果JSP中嵌入的代码包含JDK5.0的特性,编译的时候会出错。所以需要设置相应的JSP引擎配置参数如下: jdkSourceLevel 这是在 WebSphere Application Server V6.1 中引入的支持 JDK 5 的新 JSP 引擎参数。此参数的缺省值为 13。该参数需要重新生成 Java 源代码。以下是 jdkSourceLevel 参数值: 13(缺省值) - 此值将禁用 JDK 1.4 和 JDK 5.0 的所有新的语言功能部件。 14 - 此值将启用断言工具并将禁用 JDK 5.0 的所有新的语言功能部件。 15 - 此值将启用断言工具和 JDK 5.0 的所有新的语言功能部件。 此参数需要通过编辑WEB-INF/ibm-web-ext.xmi 文件设置,格式如下: <?xml version="1.0" encoding="UTF-8"?> <webappext:WebAppExtension xmi:version="2.0" xmlns:xmi=http://www.omg.org/XMI xmlns:webappext="webappext.xmi" xmlns:webapplication="webapplication.xmi" xmi:id="WebAppExtension_1" reloadInterval="9" reloadingEnabled="true" defaultErrorPage="error.jsp" additionalClassPath="" fileServingEnabled="true" directoryBrowsingEnabled="false" serveServletsByClassnameEnabled="true" autoRequestEncoding="true" autoResponseEncoding="false" <webApp href="WEB-INF/web.xml#WebApp_1"/> <jspAttributes xmi:id="JSPAttribute_0" name="jdkSourceLevel" value="15"/> <jspAttributes xmi:id="JSPAttribute_1" name="useThreadTagPool" value="true"/> <jspAttributes xmi:id="JSPAttribute_2" name="verbose" value="false"/> <jspAttributes xmi:id="JSPAttribute_3" name="deprecation" value="false"/> <jspAttributes xmi:id="JSPAttribute_4" name="reloadEnabled" value="true"/> <jspAttributes xmi:id="JSPAttribute_5" name="reloadInterval" value="5"/> <jspAttributes xmi:id="JSPAttribute_6" name="keepgenerated" value="true"/> <!-<jspAttributes xmi:id="JSPAttribute_7" name="trackDependencies" value="true"/> -> </webappext:WebAppExtension> http://gocom.primeton.com/modules/newbb/forumtopic19180_13134_25.htm |
相关文章推荐
- WebSphere Application Server 7 应用程序发布的问题 【jsp页面打不开】
- 使Jboss4.0.4GA 的jsp页面中支持泛型
- IBM websphere6.1 jsp不支持泛型解决办法
- 【转】IBM websphere6.1 不支持泛型、int-Integer类型的自动装箱和拆箱问题
- Tomcat 8.x版本不支持使用HTTP PUT方式访问JSP页面的问题
- 从JSP页面读取数据乱码问题
- 在jsp页面下, 让eclipse完全支持HTML/JS/CSS智能提示
- 关于jsp页面链接在不同浏览器中出错的问题解决
- WEB-INF文件夹下的jsp页面资源问题
- Eclipse环境下配置Tomcat服务器,查看JSP页面出现的问题
- JSP页面乱码问题
- myeclipse的web project中jsp页面汉字乱码问题解决方
- jsp页面中的EL表达式不被解析的问题
- [解决]eclipse中JSP页面的内置对象 不能引出方法的问题
- jsp页面的url里面传中文问题
- JSP中文乱码问题 页面经过过滤器后得到的是中文,但插入到MYSQL数据库却成了“?”为什么?
- SSH框架项目+jsp页面+MySQL数据库,数据中文乱码问题解决方案合集
- jsp页面传到action乱码问题
- 关于jsp页面乱码的一系列问题
- weblogic与websphere的差异 之 jsp中的注释问题