Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP - Why does this work?

 
Rob Levo
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I created a simple JSP with just a couple of out.println statements within sciplet tags. It worked perfectly, no errors.
Question: I never defined object "out", is "out" something that get built into every JSP for free?? Are there other objects that do not need to be created?
I am using JavaWebServer2.0
Thanks.
 
Madhu Juneja
Ranch Hand
Posts: 176
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First of the the creation of out or any other IMPLICIT OBJECTS is not dependent on web server (jsp engine).
There are quite a few implicit objects you get for free when you create a jsp.
1. JspWriter out;
2. PageContext pageContext;
3. Httpsession session;
4. HttpServletRequest request;
5. HttpServletResponse response;
6. ServletContext application;
7. ServletConfig config;
8. Object page;

 
Rob Levo
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic