Edit Edit

Java Servlet FAQ


What is a Java Server Page(JSP)?


A Java Server Page is an HTML page with embedded servlet code, that is surrounded by <% and %> tags. The servlet code, sometimes called scriptlet, can use four predefined variables:

request - the servlet request, an HTTPServletRequest object
response - the servlet response, an HTTPServletResponse object
out - the output writer, a PrintWriter object
in - the input reader, a BufferedReader object

For example, you could implement a simple Hello World JSP page with the following HTML:

<HTML>
<HEAD><TITLE>Hello World</TITLE></HEAD>
<BODY>
<% out.println("Hello World!"); %>
</BODY>
</HTML>



Last updated 01/03/2000 10:37:47 PM