File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Error while urlRewritting using jstl. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Error while urlRewritting using jstl." Watch "Error while urlRewritting using jstl." New topic

Error while urlRewritting using jstl.

Gowher Naik
Ranch Hand

Joined: Feb 07, 2005
Posts: 643


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

message /App1/%3Cc:url%20value='/urlResult.jsp'%20/%3E

description The requested resource (/App1/%3Cc:url%20value='/urlResult.jsp'%20/%3E) is not available.
Apache Tomcat/5.0.28

My webapplication App1 is located at
C:\Tomcat 5.0\webapps\App1

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.
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

Did you use the taglib directive to declare the prefix 'c' ?

<%@ taglib prefix="c" uri="" %>

[My Blog]
All roads lead to JavaRanch
dennis du
Ranch Hand

Joined: Dec 31, 2004
Posts: 59
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
I agree. Here's the link:
subject: Error while urlRewritting using jstl.
jQuery in Action, 3rd edition