Wether doGet() or doPost() is called depends on the kind 
of request that is sent to tomcat, not on the file type.

If tomcat receives a GET-request doGet() is called, if 
tomcat receives a POST-request doPost() is called.

If the client is a browser, all href, src attributes and
forms with method="get" are GET-requests. Only forms with
method="post" are POST-request.

Other clients can choose arbitrary methods to do requests.

This is basic knowledge before you even can start to write 
servlets and this list isn't the platform for this kind of
questions.

> -----Urspr�ngliche Nachricht-----
> Von: Aaron Chan [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 27. September 2002 08:34
> An: 'Tomcat Users List'
> Betreff: RE: How to write a servlet that handle request for .xml
> documents
> 
> 
> 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?

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to