This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Spring and the fly likes Getting 404 even when the path looks ok Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Getting 404 even when the path looks ok" Watch "Getting 404 even when the path looks ok" New topic
Author

Getting 404 even when the path looks ok

nilu chan
Greenhorn

Joined: Aug 31, 2010
Posts: 17
In my sample application I am trying to delete an employee and redirect the user back to the page from where he/she clicks 'Delete'. However I am getting 404 when I have the url with query string such as:



However if I change the above url to remove the query string then it works.



Here is my controller and dispatcher-servlet code snippet.

DeleteEmpController.java



dispatcher-servlet.xml



Not sure what's going on. Why would it give 404 when we append a query string to the url.

Please guide.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60794
    
  65

Is & the proper character to use to delimit query strings?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
nilu chan
Greenhorn

Joined: Aug 31, 2010
Posts: 17
Bear Bibeault wrote:Is & the proper character to use to delimit query strings?


My bad. Thanks for the pointer Bear.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Getting 404 even when the path looks ok
 
Similar Threads
Spring MVC Request Mapping
onSubmit() not getting called
Single or multiple instances
Binding problem in JSP with Spring
Deleting Record in a Web Application.