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?
B.Sathish
Ranch Hand
Joined: Aug 18, 2005
Posts: 372
posted
0
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.
Nicky Eng
Ranch Hand
Joined: Mar 26, 2005
Posts: 378
posted
0
<url-pattern> </url-pattern>
URL must start with " /Beer.do " ...
OR
use wild card " *.do "...
From NickyEng
Diploma in Computer Studies
SCJP 1.4
SCWCD 1.4
Formula 1 app by Maxis (Playbook)