| java.lang.Object com.salmonllc.jsp.engine.JspConverter
JspConverter | public class JspConverter (Code) | | This class can be used to process a simple JSP page and transform it into
the HTML that will be displayed when the page will be run by a JSP Engine.
It only implements the Custom Tag portion of the JSP spec. Other JSP tags will
be left as they are.
The converter has two flavors of output:
HTML: convert the page to standard HTML
DREAMWEAVER: convert the page to DreamWeaver HTML (custom tags are wrapped in tags)
|
CONV_DREAMWEAVER | final public static int CONV_DREAMWEAVER(Code) | | |
CONV_HTML | final public static int CONV_HTML(Code) | | |
convertDocument | public static void convertDocument(InputStream in, Servlet serv, ServletRequest req, ServletResponse res, int convType) throws java.lang.Exception(Code) | | This method will convert the document and send the results to the servlet output stream.
If the properties: JSPEngineDebugOutputFile and JSPEngineDebugInputFile properties are specified
in the system.properties file, the input (from the servlet input stream) and output will
also be written to those files as well.
This method must be called from a doGet, doPost or service method of a servlet.
Parameters: in - java.io.InputStream The stream containing the JSP to process Parameters: serv - javax.servlet.Servlet The servlet that is running this method. Parameters: req - javax.servlet.ServletRequest The request for the servlet running this method. Parameters: res - javax.servlet.ServletResponse The response for the servlet running this method. Parameters: convType - int valid values are: CONV_HTML: convert the page to standard HTML or CONV_DREAMWEAVER: convert the page to DreamWeaver HTML (custom tags are wrapped in tags). |
getInstanceVariables | public static void getInstanceVariables(InputStream in, Servlet serv, ServletRequest req, ServletResponse res, int convType, String docBase) throws java.lang.Exception(Code) | | This method will convert the document and generate instance variables for it.
If the properties: JSPEngineDebugOutputFile and JSPEngineDebugInputFile properties are specified
in the system.properties file, the input (from the servlet input stream) and output will
also be written to those files as well.
This method must be called from a doGet, doPost or service method of a servlet.
Parameters: in - java.io.InputStream The stream containing the JSP to process Parameters: serv - javax.servlet.Servlet The servlet that is running this method. Parameters: req - javax.servlet.ServletRequest The request for the servlet running this method. Parameters: res - javax.servlet.ServletResponse The response for the servlet running this method. Parameters: convType - int valid values are: CONV_HTML: convert the page to standard HTML or CONV_DREAMWEAVER: convert the page to DreamWeaver HTML (custom tags are wrapped in tags). |
|
|