Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) 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,
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!