Hi everybody,
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
description The requested resource (/Beer-V1/%E2%80%9DSelectBeer.do%E2%80%9D) is not available.
Arsen Lupen
Greenhorn
Joined: Nov 20, 2008
Posts: 15
posted
0
web xml also SelectBeer.do
i am sorry for old file.
Ankitt Gupta
Ranch Hand
Joined: Feb 19, 2009
Posts: 101
posted
0
Change your XML from
TO
Arsen Lupen
Greenhorn
Joined: Nov 20, 2008
Posts: 15
posted
0
please see my las message i
I have already changed
Bauke Scholtz
Ranch Hand
Joined: Oct 08, 2006
Posts: 2458
posted
0
You're using curly quotes instead of straight quotes. See, even the syntax highlighter borks on it, it doesn't color the values blue.
Use those quotes ".
Arsen Lupen
Greenhorn
Joined: Nov 20, 2008
Posts: 15
posted
0
Coulr you please expla'n me why the error 's wr'tten
type Status report with characters
%E2%80%9D
message /Beer-V1/%E2%80%9DSelectBeer.do%E2%80%9D
description The requested resource (/Beer-V1/%E2%80%9DSelectBeer.do%E2%80%9D) is not available.
Ankitt Gupta
Ranch Hand
Joined: Feb 19, 2009
Posts: 101
posted
0
please show your servlet class
Arsen Lupen
Greenhorn
Joined: Nov 20, 2008
Posts: 15
posted
0
Bauke you have done great.
it was beacues of qoutos.
now it works. urrraaaaa
But why then browser didnot give any error about this quotos
Bauke Scholtz
Ranch Hand
Joined: Oct 08, 2006
Posts: 2458
posted
0
You're welcome.
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
Arsen Lupen
Greenhorn
Joined: Nov 20, 2008
Posts: 15
posted
0
Thanks a lot
Bauke Scholtz
Ranch Hand
Joined: Oct 08, 2006
Posts: 2458
posted
0
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".