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:

<% out.println("Hello World!"); %>

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