Name:
Jsp
Description:
Parse, compile and execute a JSP page. You can find more informations
about JSP and Servlets here
http://java.sun.com/.
Options:
Option | Default | Values | Short Description | Example(s) |
---|---|---|---|---|
JavaCompiler | "javac" | Quoted string | Optional command line for the java compiler | "/usr/local/jdk1.3.1/bin/javac" |
ClassPath | - | Quoted string | Optional classpath set for the java compiler | "Pi3Servlet.jar;servlet.jar" |
Context | + | Valid Pi3 object Reference | Reference to servlet container | ServletContainer |
Extends | - | Quoted string | Valid base class used by this Jsp. | "Pi3HttpJspPage" |
Init | - | Quoted string | Servlet config option(s) | "color=red" |
Encoding | - | Quoted string | Encoding of the java source files | "UTF8" |
OutputPath | - | Quoted string | Valid path name, where the compiled Jsp source files (.class) will be stored | "c:\Program Files\jdk1.3.1\jre\lib" |
SourcePath | - | Quoted string | Valid path name, where the Jsp source files (.java) will be stored | "..\Jsp" |
Phase:
HANDLE
Returns:
PIAPI_COMPLETED, PIAPI_ERROR or INT_REDIRECT according to the result of
JNI calls and the status returned by the servlet.
Note:
Example:
<Object> Name Jsp Class JspClass Context ServletContainer </Object> <Object> ... Handle Condition="&cmp(&dblookup(response,string,ObjectMap,SERVLET),Servlet)" Jsp ... </Object>
:
Name:
Servlet
Description:
Load and execute a java servlet extension. You can find more
informations about servlets here
http://java.sun.com/.
Options:
Option | Default | Values | Short Description | Example(s) |
---|---|---|---|---|
Context | + | Valid Pi3 object Reference | Reference to servlet container | ServletContainer |
ClassName | - | Quoted string | Valid Servlet class name | "org.pi3.servlet.samples.HelloServlet" |
ServletName | - | Quoted string | Any name for Servlet | "My 1st Servlet" |
Init | - | Quoted string | Servlet config option(s) | "color=red" |
Phase:
HANDLE
Returns:
PIAPI_COMPLETED, PIAPI_ERROR or INT_REDIRECT according to the result of
JNI calls and the status returned by the servlet.
Note:
Example:
<Object> Name Servlet Class ServletClass Context ServletContainer </Object> <Object> ... Handle Condition="&cmp(&dblookup(response,string,ObjectMap,SERVLET),Servlet)" \ Servlet ClassName="MyServlet" ... </Object>
Name:
ServletContainer
Description:
The ServletContainer is the Pi3 object, which contains the ServletContext
within the JVM. It also maintains the HttpSessions, the Servlet instances
including their ServletConfig and the default JspFactory. In Pi3Web 2.0 only
one ServletContainer could exist. Thus, only one JVM could serve Servlet requests.
Options:
Option | Default | Values | Short Description | Example(s) |
---|---|---|---|---|
JvmNumber | - | Any number | Number of JVMs | 1 |
JvmOption | - | Quoted string | JVM startup option(s) | "-Djava.compiler=NONE" |
JvmLocalReferences | - | Any number | Number of local references | 128 |
JvmIgnoreUnrecognized | - | Empty string | Ignore invalid JVM options | "" |
LogFile | - | Valid filename | Servlet log file | "../Logs/servlet.log" |
Expression | - | Valid Pi3Expression | Expression in log messages | "[$t|$P|$k|$T] " |
OpenMode | - | Either "a" or "c" | Mode to open log file | "a" |
DocBase | - | Valid path | Document root for web application | ".\WebRoot2" |
Phase:
Server startup and shutdown
Returns:
PIAPI_COMPLETED, PIAPI_ERROR
Note:
Example:
<Object> Name ServletContainer Class ServletContainerClass JvmNumber 1 JvmOption "-Djava.compiler=NONE" JvmOption "-verbose:jni" JvmOption "-Djava.class.path=servlet.jar;Pi3Servlet.jar" JvmOption "-Djava.library.path=." JvmLocalReferences 128 JvmIgnoreUnrecognized "" LogFile "../Logs/servlet.log" Expression "[$t|$P|$k|$T] " OpenMode "a" DocBase ".\WebRoot2" </Object>
: