• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

is jsp has also concept like servlet context ?

 
samdeep aarzoo
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is jsp has also concept like servlet context
servlet config ?please comment on this
please help
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15278
39
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A JSP is just a servlet written in a different form. Do you know how JSPs work? The JSP container converts your JSP to a servlet and then runs the servlet. So yes, servlet context and config are also available in a JSP.

In JSPs, there are a number of implicit objects available, including these two:

application - the servlet context
config - the servlet config

These exist as variables in your JSP.
 
samdeep aarzoo
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks
can u tell more about implicit object
what about" page"
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can u tell more about implicit object


Fortunately, Jesper doesn't have to - it's been done already. Have a look at section 1.8.3 of the JSP 2.0 specification, and you'll find everything you need to know about implicit objects.
[ August 24, 2005: Message edited by: Ulf Dittmer ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic