HFS p586 says exact matching url-pattern must begin with a slash e.g. <url-pattern>/Beer/SelectBeer.do</url-pattern>.
But according to servlet spec 11.2, it only says "all other strings are used for exact matches only" which imples with or without beginning slash e.g. <url-pattern>Beer/SelectBeer.do</url-pattern>
So can I use the one without slash in DD and what would it matches?
Joined: Aug 18, 2005
I don't think you can use without slash. I remember in my exam, there was a tricky question on this , asking to choose the right url-patterns. There were a few of them without slash. Based on what I read in HFSJ, I did not select them. I got it right as I know I got 100% on deployment and servlets.
Joined: Mar 26, 2005
URL must start with " /Beer.do " ...
use wild card " *.do "...
Diploma in Computer Studies
Formula 1 app by Maxis (Playbook)