tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: error-page and POST vs GET
Date Fri, 02 May 2003 13:11:10 GMT


>public class LabServlet extends HttpServlet {
>     public void doGet(HttpServletRequest req, HttpServletResponse res)
>         throws IOException, ServletException
>     {
>         res.setContentType("text/plain");
>         PrintWriter out = res.getWriter();
>         throw new ServletException("LAB SERVLET");
>     }
>     public void doPost(HttpServletRequest req, HttpServletResponse
>         throws IOException, ServletException
>     {
>         doGet(req, res);
>     }

What happens if you copy the code from doGet into the doPost method,
rather than call doGet from doPost?

Yoav Shapira
Millennium ChemInformatics

This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message