`

JAEE5.0工程JSTL不能正常使用解决办法

    博客分类:
  • Java
 
阅读更多

在Tomcat的安装路径下:apache-tomcat-7.0.25\webapps\examples\WEB-INF\lib

有此jstl.jar和standard.jar包

 

 

web.xml声明部分一般分为如下版本的xsd,
web-app_2_2.xsd
web-app_2_3.xsd
web-app_2_4.xsd
web-app_2_5.xsd

 

 

 只需把web.xml的头信息改成如下:

<web-app version="2.4"
 xmlns="http://java.sun.com/xml/ns/j2ee"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

 

同时在使用JSTL的jsp页面加入

<%@ page isELIgnored="false"%>  

为求一劳永逸,在web.xml中添加

<jsp-config>
	<jsp-property-group>
		<url-pattern>*.jsp</url-pattern>
		<el-ignored>false</el-ignored>
	</jsp-property-group>
</jsp-config>

即可。

 

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics