You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Gilson do N. D'Elrei" <gi...@uol.com.br> on 2001/04/02 02:05:52 UTC
How to use XML ?
Everyone have a good tutorial about use of JSP/Servlet and XML. Please not
sun.com, i have all. I need of practice samples about use of XML with
JSP/Servlets.
thanks in advance.
java : legacy system for NT and Linux ?
Posted by Joel Cordonnier <jo...@yahoo.fr>.
Hi
I'm a new user of Tomcat 3.2, and I wonder if someone
now if some free (portable?) legacy system exist ?
Thanks
Joel
___________________________________________________________
Do You Yahoo!? -- Pour dialoguer en direct avec vos amis,
Yahoo! Messenger : http://fr.messenger.yahoo.com
Re: How to use XML ?
Posted by "Heo, GwangNam" <he...@popsmail.com>.
place xerces.jar file in your
jdk/jre/lib/ext
and restart tomcat
you can get it from http://xml.apache.org xerces - java
that's all. (I know)
here is sample codes
okjsp.jsp
<%@ page contentType="text/html;charset=euc-kr" %><%String [][] x = { {"1","a"}, {"2","b"}, {"3","c"}, {"4","d"}, {"5","e"}};%><?xml version="1.0" encoding="euc-kr" ?><?xml-stylesheet type="text/xsl" href="okjsp.xsl" ?><phone><%for (int i=0;i<x.length;i++) { %> <member> <name><%=x[i][0] %></name> <title><%=x[i][1] %></title> </member><%} %></phone>
okjsp.xsl
<?xml version="1.0"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"> <xsl:template match="/"> <html> <body> <table border="2" cellpadding="2"> <tr> <td>name</td> <td>title</td> </tr> <xsl:for-each select="phone/member"> <tr> <td><xsl:value-of select="name" /></td> <td><xsl:value-of select="title" /></td> </tr> </xsl:for-each> </table> </body> </html> </xsl:template></xsl:stylesheet>
from : http://my.dreamwiz.com/heogn/lecture/lec07/xml01.htm
----- Original Message -----
From: "Gilson do N. D'Elrei" <gi...@uol.com.br>
To: <to...@jakarta.apache.org>
Sent: Monday, April 02, 2001 9:05 AM
Subject: How to use XML ?
> Everyone have a good tutorial about use of JSP/Servlet and XML. Please not
> sun.com, i have all. I need of practice samples about use of XML with
> JSP/Servlets.
> thanks in advance.
>
>