All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.apache.jserv.JServSSI

java.lang.Object
   |
   +----javax.servlet.GenericServlet
           |
           +----javax.servlet.http.HttpServlet
                   |
                   +----org.apache.jserv.JServSSI

public class JServSSI
extends HttpServlet
JServSSI provides support for the invocation of servlets from within HTML documents. JServSSI supports server side includes servlets with the <servlet> </servlet> style tag. To activate JServSSI , HTML documents that contain <servlet> tags must have their file names end with the .jhtml extension.

Example of a serlvet invocation by the embedded inside a HTML document:

  ...
  ( some HTML code)
  ...
  <SERVLET NAME="servlet test" CODE="Myservlet.class">
  <PARAM NAME="Parameter_1" VALUE="1">
  <PARAM NAME="Parameter_2" VALUE="some other value">
  </SERVLET>
  ...
  ( some more HTML code)
  ...
 

Author:
Roger Zeng
See Also:
HttpServlet

Variable Index

 o originalParameters
Parameters in the original HTTP request, JServSSI passes along any parameter sent in the original request.
 o servletAttributes
Attributes of the servlet about to be invoked.

Constructor Index

 o JServSSI()
The default constructor

Method Index

 o doGet(HttpServletRequest, HttpServletResponse)
Process the outgoing jhtml document and invoke the servlets.
 o doPost(HttpServletRequest, HttpServletResponse)
Does the same things as the doGet() method.

Variables

 o servletAttributes
 protected Hashtable servletAttributes
Attributes of the servlet about to be invoked.

 o originalParameters
 protected Hashtable originalParameters
Parameters in the original HTTP request, JServSSI passes along any parameter sent in the original request.

Constructors

 o JServSSI
 public JServSSI()
The default constructor

Methods

 o doPost
 public void doPost(HttpServletRequest req,
                    HttpServletResponse res)
Does the same things as the doGet() method.

Overrides:
doPost in class HttpServlet
 o doGet
 public void doGet(HttpServletRequest req,
                   HttpServletResponse res)
Process the outgoing jhtml document and invoke the servlets.

Parameters:
req - The servlet request object
res - The servlet response object
Overrides:
doGet in class HttpServlet

All Packages  Class Hierarchy  This Package  Previous  Next  Index