wood burning stoves 2.0*
The moose likes Servlets and the fly likes getPathInfo() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "getPathInfo()" Watch "getPathInfo()" New topic


Sunder Ganapathy
Ranch Hand

Joined: Apr 01, 2003
Posts: 120
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"



[ November 09, 2007: Message edited by: Sunder Ganapathy ]
[ November 09, 2007: Message edited by: Sunder Ganapathy ]
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41073
The mapping URL needs to be

Ping & DNS - my free Android networking tools app
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60766

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 ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Sunder Ganapathy
Ranch Hand

Joined: Apr 01, 2003
Posts: 120
Thanks a lot Ulf. I will always remember this fault.
It is sorta covered in the JavaRanch Style Guide.
subject: getPathInfo()
Similar Threads
Head First Servlet JSP: BeerSelect example: requested resource not available
Starting out on Servlets - from Head First Servlets and JSP
Getting problem with post method
MVC tutorial Head First