File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How implicit object "config" work

 
ram gaurav
Ranch Hand
Posts: 208
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI

Can you please explain the exact work of "config" implicit object in JSP.
and i am very thankful if you can give me some example.

Thanks
Regards
Gaurav
 
Balasubramani Dharmalingam
Ranch Hand
Posts: 116
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is the ServletConfig object corresponding to the generated servlet. If you see the servlet code generated by the Container , u can find code as follows,

ServletConfig config = null;
config = pageContext.getServletConfig();

From this u can get the servlet init parameters.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic