File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes JSP - Why does this work? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "JSP - Why does this work?" Watch "JSP - Why does this work?" New topic
Author

JSP - Why does this work?

Rob Levo
Ranch Hand

Joined: Oct 01, 2000
Posts: 167
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

Joined: Mar 10, 2001
Posts: 176
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

Joined: Oct 01, 2000
Posts: 167
Thanks!
 
 
subject: JSP - Why does this work?
 
developer file tools