HOWTO

http://localhost/cgi-bin/dwww?type=file&location=/usr/share/doc/HOWTO/en-txt/Apache-Overview-HOWTO.gz

JAVA SERVLETS

Java servlets can be compared to a mix between CGI script and Applets that run on Server's Side.
JSP files are more like php or ASP (they're compiled automagicly on demand).
There are at least 2 libre servlets engines http://nrv/cgi-bin/dwww?type=file&location=/usr/share/doc/HOWTO/en-txt/Enterprise-Java-for-Linux-HOWTO.gz
Installing : The Debian way :
http://localhost/cgi-bin/dwww?type=file&location=/usr/share/doc/tomcat4/README.Debian
apt-get install tomcat4
Then point browser to : http://localhost:8180/
+-------------------------------------+
| Directory Listing For /             |
| Filename 	Size 	Last Modified |
| Apache Tomcat/4.0.4                 |
+-------------------------------------+
http://localhost:8180/tomcat-docs/index.html

By the way it did not work that easly for me

apt-get install tomcat4
Starting Tomcat 4.0 servlet engine using Java from /usr/lib/j2se/1.3: invoke-rc.d: initscript tomcat4, action "start" failed.

nc localhost 8180
localhost [127.0.0.1] 8180 (?) : Connection refused
I don't know if this is called a bug or not, but it seams i have to play with update-alternatives ? well I workarounded it with
JAVA_HOME=/usr/lib/j2se/1.4 ; export JAVA_HOME
apt-get install tomcat4

root@ttyp5[rzr]# /etc/init.d/tomcat4 start
Starting Tomcat 4.0 servlet engine using Java from /usr/lib/j2se/1.4: tomcat4.
now ok as said at First
Installing : The Tomcat Way (unfinished)
JAVA_HOME=/usr/lib/jre-1.3.1_02 ; export JAVA_HOME
export CATALINA_BASE=/tmp
export CATALINA_HOME=${CATALINA_BASE}
mkdir -p ${CATALINA_HOME}/logs 
/usr/share/tomcat4/bin/startup.sh
http://localhost:8080/
Testing
java -version
java version "1.4.1"
apt-get install tomcat4-webapps
Now reload http://localhost:8180/examples/jsp/snp/snoop.jsp
http://localhost:8180/examples/jsp/snp/snoop.txt
or file:///usr/share/tomcat4/webapps/examples/jsp/snp/snoop.jsp
Request Information
Request URI: /examples/jsp/snp/snoop.jsp 
The browser you are using is Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031107 Debian/1.5-3

Source code : 
Request Information 
JSP Request Method: <%= request.getMethod() %>
Request URI: <%= request.getRequestURI() %>
The browser you are using is <%= request.getHeader("User-Agent") %>

XML

Terminaulogy
DTD

XSL is a language you can use for freely modify any source text (StyleSheet)

DOM : The Document Object Model specifies a tree-based representation for an XML document, as opposed to the event-driven processing provided by SAX. DOM is used to access XML compliant documents

SAX: The Simple API for XML

XSL / XSLT
http://www.w3.org/TR/xslt
A simple stylesheet looks like this
<xsl:stylesheet version = '1.0' 
     xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
 
<xsl:template match="/">
     <h1> 
          <xsl:value-of select="//title"/> 
     </h1> 
     <h2> 
          <xsl:value-of select="//author"/> 
     </h2> 
</xsl:template>
</xsl:stylesheet> 
apt-get install xsltproc 
xsltproc stylesheet.xsl data.xml >| readable.html
Problems: When using in text extendend ascii codes like accents ( é / e' ) etc
<?xml version="1.0" encoding="ISO-8859-15" >
Else use xml code like &#xE9; or UTF8 codes ( é / A~(c) ) Both will be escaped to UTF8 ( Unicode char are escaped in Emacs like \x{00E9} )
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >

WEBSERVICES / SOAP

SOAP : Simple Object Access Protocol, http://xml.apache.org/soap/
Apache Axis is an open source implementation of soap http://ws.apache.org/axis/
http://linuxgazette.net/issue96/tougher.html

JAVA_HOME=/usr/lib/j2se/1.4 ; export JAVA_HOME
CATALINA_HOME=/usr/share/tomcat4/ ; export CATALINA_HOME
ant
cp -rfa ./axis-1_2alpha/webapps/axis /var/lib/tomcat4/webapps/


apt-get install lg-issue96 
http://localhost:8180/axis/
http://localhost:8180/axis/HelloWorldService.jws
http://localhost/cgi-bin/dwww?type=file&location=/usr/share/doc/lg/issue96/tougher.html
http://localhost:8180/axis/StockQuoteService.jws
http://localhost:8180/axis/HelloWorldService.jws?method=HelloWorld&data=Hi

www.Philippe.COVAL.online.FR
Last modified: Sun Feb 8 18:14:02 CET 2004