Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error while urlRewritting using jstl.

 
Gowher Naik
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
//urlRewriting.jsp



//urlResult.jsp


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
http://localhost:8080/App1/urlRewriting.jsp

i think i am not able to set path correctly inside <c:url> tag in urlRewriting.jsp file.

Please help me.
Thanks
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you use the taglib directive to declare the prefix 'c' ?

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
 
dennis du
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic