• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting 404 even when the path looks ok

 
nilu chan
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64620
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is & the proper character to use to delimit query strings?
 
nilu chan
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:Is & the proper character to use to delimit query strings?


My bad. Thanks for the pointer Bear.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic