apt-get install tomcat4Then 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 refusedI 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
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/
java -version java version "1.4.1" apt-get install tomcat4-webapps
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") %>
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: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
<?xml version="1.0" encoding="ISO-8859-15" >Else use xml code like é 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" >
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-issue96http://localhost:8180/axis/