This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Doubt in JSP specfications Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Doubt in JSP specfications" Watch "Doubt in JSP specfications" New topic

Doubt in JSP specfications

Shwetha Sharma
Ranch Hand

Joined: Jun 01, 2008
Posts: 34

If we make JSP files not depend on Servlets, we may want to expose the JspContext object, not the PageContext object.
Can someone explain what does the above statement means.
When does " JSP files not depend on Servlets" ?Arent all jsp files going to get converted into servlets everytime

SCJP6:80%, OCWCD 88 %
Travis Hein
Ranch Hand

Joined: Jun 06, 2006
Posts: 161
well, in modern servlet specifications (what is it, 2.4 I think?) it is possible to use JSP syntax in a file to create a tag library, that is instead of creating Java class that extends the Tag support class and creating a .tld descriptor XML file, it is possible to create a WEB-INF/tags folder,and inside there, create a folder for each tag library (prefix), and a JSP-syntax file, with the ".tag" extension, that will be compiled into a Java class that extends the JSP tag support class, instead of a servlet.

See also:

Error: Keyboard not attached. Press F1 to continue.
I agree. Here's the link:
subject: Doubt in JSP specfications
Similar Threads
help regardin jsp and flash
JSP, Servlets and PHP
Problem using Browser Back or Refresh
Can servlets in individual contexts have access to the same session object?
Diffrence between JSP and Servlets