wood burning stoves 2.0*
The moose likes JSP and the fly likes is jsp has  also concept like servlet context ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "is jsp has  also concept like servlet context ?" Watch "is jsp has  also concept like servlet context ?" New topic
Author

is jsp has also concept like servlet context ?

samdeep aarzoo
Ranch Hand

Joined: Jun 09, 2005
Posts: 160
is jsp has also concept like servlet context
servlet config ?please comment on this
please help
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14432
    
  23

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.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
samdeep aarzoo
Ranch Hand

Joined: Jun 09, 2005
Posts: 160
thanks
can u tell more about implicit object
what about" page"
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42923
    
  68
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: is jsp has also concept like servlet context ?