![]() |
JBridge: Certification Question Of The Day |
| JBridge Home >> Certification Questions >> Question for Wednesday May 28th 2003 | Wednesday May 28th 2003 |
|
Why might you use the method HttpServletResponse.encodeRedirectURL instead of HttpServletResponse.encodeURL? (1 correct answer) A Because your servlet or jsp code includes a call to the RequestDispatcher.forward() method.
B Because your servlet or jsp code includes a call to the RequestDispatcher.include() method.
C Because your servlet or jsp code includes a call to the HttpServletResponse.sendRedirect() method.
D Because your session management relies on URL rewriting rather than cookies. E Because the HttpServletResponse.encodeURL method does not exist.
Page down for the answer... The AnswerC is the correct answer. The advice is to always pass a URL through |
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.