Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regarding jsp implicit variables

 
Senthil Kumar N
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which of the following implicit variables should be used by a jsp page to access a resource and to forward a request to another jsp page?


a pageContext and config


b application and config


c config and pageContext


d application for both


e config for both.

both b and d option are correct. But we have to choose only one option. Can anyone explain in detail how to answer this kind of questions.
 
Perla Ricardez
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

mmm, i'm too studying, and i found that config is a instance of ServleConfig, and you cann't get a RequestDispatcher from this,
you can get a RequestDispatcher only for ServletContext and ServletRequest
so i believe that (d) is the correct option,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic