This week's book giveaway is in the Server-Side JavaScript and NodeJS forum.
We're giving away four copies of Micro Frontends in Action and have Michael Geers on-line!
See this thread for details.
Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Doubt in JSP specfications

 
Ranch Hand
Posts: 34
Eclipse IDE MySQL Database Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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: http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSPTags5.html
 
I'm a lumberjack and I'm okay, I sleep all night and work all day. Lumberjack ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic