aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 13870
    
  10

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 7 API documentation
Scala Notes - My blog about Scala
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: 39547
    
  27
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 ]

Ping & DNS - updated with new look and Ping home screen widget
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: is jsp has also concept like servlet context ?
 
Similar Threads
using jsp in the background
please help?
JSPCONTEXT VS. SERVLET CONTEXT
parameter and attribute in servlet
servlet context vs servlet config