• 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

getPathInfo()

 
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I do not know what error I am committing. Kindly help.




http://localhost:8080/v1/Customer/2/ is entered as the URL.

HTTP Status 404 - /v1/Customer/2/
The requested resource (/v1/Customer/2/) is not available.

http://localhost:8080/v1/Customer/2 also gives the same message.

protected void get also gives the same messsage.

web.xml is as follows.

<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemalocation="http://java.sun.com/xml/nsj2ee/web-app_2_4.xsd"
version="2.4">

<servlet>
<servlet-name>CustM</servlet-name>
<servlet-class>com.example.web.FrontController</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>CustM</servlet-name>
<url-pattern>/Customer</url-pattern>
</servlet-mapping>
</web-app>

[ November 09, 2007: Message edited by: Sunder Ganapathy ]
[ November 09, 2007: Message edited by: Sunder Ganapathy ]
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The mapping URL needs to be

 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please be sure to use UBB code tags when posting code to the forums. Unformatted code is extermely hard to read and most people will just go elsewhere. Please read this for more information.

You can go back and change your post ot add code tags by clicking the .
[ November 09, 2007: Message edited by: Bear Bibeault ]
 
Sunder Ganapathy
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot Ulf. I will always remember this fault.
 
reply
    Bookmark Topic Watch Topic
  • New Topic