Installing Kawa programs as Servlets
You can compile a Kawa program to a Servlet
, and run it
in a servlet engine (a Servlet-aware web server).
I assume you have compiled your program to a servlet as
descrbibed in the previous section.
If you have Tomcat 4.x installed, and you want hello
to be
part of the myutils
"web application", copy hello*.class
into $CATALINA_HOME/webapps/myutils/WEB-INF/classes/
.
You also need to copy Kawa somewhere where Tomcat can find it,
for example $CATALINA_HOME/lib/kawa-1.7.jar
.
You can then run the hello
servlet using the URL
<http://localhost:8080/myutils/servlet/hello
>.
When called from a Kawa servlet's handler, returns the
actual javax.servlet.http.HttpServlet instance.
|
current-servlet-context
|
Function |
Returns the ServletContext of the currently executing servlet.
|
current-servlet-config
|
Function |
Returns the ServletConfig of the currently executing servlet.
|
servlet-context-realpath
|
Function |
Returns the file path of the current servlet's "Web application".
|