Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Error while urlRewritting using jstl.

 
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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" %>
 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Why is the word "abbreviation" so long? And this ad is so short?
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic