A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Spring in Action
this week in the
Web Component Certification (SCWCD/OCPJWCD)
Error while urlRewritting using jstl.
Joined: Feb 07, 2005
Oct 16, 2006 04:36:00
<html> <body> <a href="<c:url value='/urlResult.jsp' />">click here</a> </body> </html> i am doing url rewriting using jstl. code shown above is jsp page which provides link to urlResult.jsp page. code below is result page after clicking hyperlink on urlRewriting.jsp
<html> <body> Url Rewritting Using jstl. </body> </html>
The tomcat5 throws Exception shown below when i click hyperlink on urlRewriting.jsp
HTTP Status 404 - /App1/%3Cc:url%20value='/urlResult.jsp'%20/%3E
type Status report
description The requested resource (/App1/%3Cc:url%20value='/urlResult.jsp'%20/%3E) is not available.
My webapplication App1 is located at
Both urlRewriting.jsp and urlResult.jsp are located inside C:\Tomcat 5.0\webapps\App1 folder
i am using Below shown url to run urlRewriting.jsp
i think i am not able to set path correctly inside <c:url> tag in urlRewriting.jsp file.
Please help me.
Joined: Nov 24, 2005
Oct 16, 2006 07:07:00
Did you use the taglib directive to declare the prefix 'c' ?
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
All roads lead to JavaRanch
Joined: Dec 31, 2004
Oct 16, 2006 15:37:00
Satou kurinosuke , you are so good.
I think it should be sure for missing the prefix declaration.
It is some interesting to think of that.
-------------------------------<br />OCP 9i <br />SCJP/SCJD/SCWCD(92%)/SCDJWS<br />XML(IBM Test 141)<br />Who is the next?SCBCD<br />SCBCD/CCNA/CCNP/PMP<br />not sure
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: Error while urlRewritting using jstl.
Request Dispatcher problem
How to run my own jsp file?
Why encodeURL not including Context name
Cannot able to Add jstl.jar file
Problem in opening PDF or FDF in Firefox?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014