![]() |
JBridge: Certification Question Of The Day |
| JBridge Home >> Certification Questions >> Question for Sunday May 11th 2003 | Sunday May 11th 2003 |
|
Suppose the following servlet mapping is set up for a web application called “music”: <servlet-mapping> <servlet-name>PlayPiece</servlet-name> <url-pattern>/PlayPiece/*</url-pattern> </servlet-mapping>Which of the following are true statements? (2 correct answers) A Given a request URL of http://myHost/music/PlayPiece, the context path would be ‘music’.
B Given a request URL of http://myHost/music/PlayPiece/requiem, the path information would be ‘/requiem’.
C Given a request URL of http://myHost/music/PlayPiece, the servlet path would be ‘/PlayPiece’, and the path information would be null.
D Given a request URL of http://myHost/music/PlayPiece/requiem, the real path information would be ‘//myHost/music/PlayPiece'
Page down for the answer... The AnswerB and C are the correct answers. |
EMail: dbridgewater@jbridge.co.uk
Phone: +44 (0)1943 877414
Fax: +44 (0)1943 877414
Mail: David Bridgewater, Willow Dene, Bradford Road, Menston, Ilkley, West Yorkshire, LS29 6ED, UK
Copyright © 2003 David Bridgewater. All rights reserved.