最近学习spring,IDE是用的myeclipse,步骤:在myeclipse新建工程,然后在myeclipse中导入struts+hibernate,然后添加JSTL,到这是JSTL使用一切正常,但是接着我导入spring,提示有包重名,我点击覆盖。接下来用JSTL就出问题了,有的功能就出问题了。下面我找个了单独的页面代码测试,各位达人可不可以帮我解决下
测试页面代码:
<%@ page language="java"  pageEncoding="utf-8"%> 
<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>  
<html> 
<head> 
<title>JSTL Test</title> 
</head> 
<body> 
<c:if test="${pageContext.request.method=='POST'}"> 
<c:if test="${param.guess=='JSTL'}">猜對囉∼ 
<br /> 
<br /> 
<br /> 
</c:if> 
<c:if test="${param.guess!='JSTL'}">這問題很簡單嘛∼請再猜猜看 
<br /> 
<br /> 
<br /> 
</c:if> 
</c:if> 
  <c:out value="請猜猜這個網頁用到的網頁技術是啥米?" /> 
<form method="post"> 
<input type="text" name="guess" /> 
<input type="submit" value="Guess!" /> 
<br /> 
</form> 
</body> 
</html> 注:添加了spring后好像就识别不了前半段了。