You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Aaron Chan <al...@accom.per.sg> on 2002/09/27 07:25:26 UTC
How to write a servlet that handle request for .xml documents
Hi, I have setup the web.xml to direct request to .xml to my servlet
However, I do not know how to write the servlet inorder to have it
perform jobs I want it to do. Anyone know of any guides on writing it or
know how to write it? Thanks in advance.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: How to write a servlet that handle request for .xml documents
Posted by Aaron Chan <al...@accom.per.sg>.
Hi, thanks for ur reply. I already know how to write basic servlet, just
that I am not sure when the tomcat redirect the request of .xml file to
the servlet, which method inside the servlet gets to handle it? doGet or
doPost? I even tried service() but can't do it. Also how can I get the
requested file names?
Thanks in advance
Btw.. I agree that it is a good book I have it here :)
-----Original Message-----
From: Andreas Probst [mailto:andpro77@gmx.net]
Sent: Friday, September 27, 2002 2:22 PM
To: Tomcat Users List
Subject: Re: How to write a servlet that handle request for .xml
documents
> Hi, I have setup the web.xml to direct request to .xml to my servlet
>
> However, I do not know how to write the servlet inorder to have it
> perform jobs I want it to do. Anyone know of any guides on writing it
or
> know how to write it? Thanks in advance.
The sun site has a tutorial. Search www.javasoft.com.
O'Reilly's Java Servlet Programming is a good book on Java
servlets.
Andreas
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: How to write a servlet that handle request for .xml documents
Posted by Andreas Probst <an...@gmx.net>.
> Hi, I have setup the web.xml to direct request to .xml to my servlet
>
> However, I do not know how to write the servlet inorder to have it
> perform jobs I want it to do. Anyone know of any guides on writing it or
> know how to write it? Thanks in advance.
The sun site has a tutorial. Search www.javasoft.com.
O'Reilly's Java Servlet Programming is a good book on Java
servlets.
Andreas
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>