This week's book giveaway is in the
Agile and other Processes
forum.
We're giving away four copies of
The Mikado Method
and have Ola Ellnestam and Daniel Brolund on-line!
See
this thread
for details.
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Certification
»
Web Component Certification (SCWCD/OCPJWCD)
Author
ServletContext in a JSP page
Giri Thava
Ranch Hand
Joined: Jun 22, 2006
Posts: 38
posted
Jul 21, 2008 21:09:00
0
In the page 500(1st Edition), it says that a Tag File (a
JSP
file)
doesn't have access to a
ServletContext
, instead it has access to
a
JspContext
.
But the implicit object "application" is a
ServletContext
.
Isn't it? So a JSP page has access to a
ServletContext
.
Seetharaman Venkatasamy
Ranch Hand
Joined: Jan 28, 2008
Posts: 5575
I like...
posted
Jul 22, 2008 00:14:00
0
Hi,
in tag file(.tag extension)is nothing about jsp,so you can access application . i think your are talking about Tag handler .
Tag handler is having its own behaviour(it is like
java
file)...so using pageContext you can access application
Amit Ghorpade
Bartender
Joined: Jun 06, 2007
Posts: 2552
2
I like...
posted
Jul 22, 2008 02:53:00
0
In the page 500(1st Edition), it says that...
Which book?
Please
QuoteYourSources
.
And looks like you are confused with tag files and JSP.
SCJP, SCWCD.
|
Asking Good Questions
|
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: ServletContext in a JSP page
Similar Threads
Servlet Context?
What is the spec saying ?
Model 2 Question
ServletContext Doubt / Poll
jspInit()
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter