aspose file tools*
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 Spring in Action this week in the Spring 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: 61426
    
  67

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting 404 even when the path looks ok