Results 1 to 2 of 2
- 01-26-2011, 10:07 PM #1
Member
- Join Date
- Jan 2011
- Posts
- 2
- Rep Power
- 0
issue with jstl 1.1 and tomcat 7.0
well i know, this is crazy but it's real, here's the jsp source:
and this is the answer from tomcat:Java Code:<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <html> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <title>A JSP Page With Parameter Looping</title> </head> <body> this is it! <br> <c:forEach begin="1" end="5" step="1"> This is from inside the loop.<br> </c:forEach> <c:out value='${header["host"]}' /> <c:out value="${10 mod 4}" /> <c:out value='${pageContext.request.contextPath}' /> <br> <c:forEach items="${param}" var="pin"> param name: <c:out value="${pin.key}" /> value: <c:out value="${pin.value}" /> btw, <c:out value="${param}" /> <br> <h2> kkk </h2> </c:forEach> </body> </html>
i don't know what's wrong. i'm loosing my mind. :confused:Java Code:this is it! This is from inside the loop. This is from inside the loop. This is from inside the loop. This is from inside the loop. This is from inside the loop. ${header["host"]} ${10 mod 4} ${pageContext.request.contextPath} param name: ${pin.key} value: ${pin.value} btw, ${param} kkk
- 01-27-2011, 07:31 AM #2
Member
- Join Date
- Jan 2011
- Posts
- 2
- Rep Power
- 0
source OK, metafile probably not
Far as i see, source is O.K. but from tomcat output i guess there should be something wrong with metafiles. ensure "web.xml" has proper attributes and tags. specially <web-app> tag.
for tomcat 7 it should be something like this:
to make sure about metafiles attributes and tags, check $CATALINA_HOME/webapps/examples/WEB-INF/web.xmlJava Code:<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0">
and to make sure about you libs, simply copy contents of '$CATALINA_HOME/webapps/examples/WEB-INF/lib' directory to your application lib directory.
good luck ;)
Similar Threads
-
Eclipse and Tomcat 6+7 issue
By Sno in forum EclipseReplies: 0Last Post: 01-22-2011, 08:11 PM -
Memory issue in servlet application in a tomcat container
By bedhinesh in forum Java ServletReplies: 2Last Post: 07-24-2009, 01:26 PM -
Tomcat Issue
By sanyog24681 in forum Java ServletReplies: 1Last Post: 10-20-2008, 09:08 AM -
Tapestry, Eclipse- Tomcat/Weblogic <jwcid> issue - Please help
By apmaddali in forum Web FrameworksReplies: 0Last Post: 04-21-2008, 06:21 AM -
Tomcat In Eclipse - Sysdeo Tomcat Plug-in
By JavaForums in forum EclipseReplies: 1Last Post: 02-13-2008, 10:33 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks