i am trying to make MVC tutorial of Head Firts Ch 3.
I am at the step of checking the servlet whether it works or now.
but i what i see is page not found.SelectBeer.do is the url pattern.
Could you please help to to sove problem with web.xml mapping.
because i eveything what i need according to tutorial.
Thanks in advance
You won't get an error because the straight quotes are fully optional. Those curly quotes are just seen as actual part of the value. As those curly quotes aren't part of the basic ASCII charset, they got URL encoded before sending to the server side. More about URL encoding: http://www.w3schools.com/TAGS/ref_urlencode.asp
Oh, when I said optional, I do not necessarily mean that you should omit them. Always use them. Not only for readability, but also to avoid problems if you have spaces in the value. E.g. would only pick the value "foo" while would pick the full value "foo bar".