- From: Ragna-Lena&Dan <prepare.enrich@telia.com>
- Date: Fri, 18 Jun 1999 14:20:57 -0400 (EDT)
- To: "jigsaw <== dan" <www-jigsaw@w3.org>
Received on Friday, 18 June 1999 15:45:10 UTC
The CartServlet source file with BOTH doGet() and doPost() seem necessary.Plus SERVLET in stead of SERVLETS of course!Thanks all of you who helped me!-danPS In my 2.1.2 version some of the images in the DOC don't correspondwith the images in the JigsawAdmin Tool (especially those which illustratethe manual setup of servlets)import java.io.*;import javax.servlet.*;import javax.servlet.http.*;public class CartServlet extends HttpServlet {public void doGet(HttpServletRequest req, HttpServletResponse res)throws ServletException, IOException {res.setContentType("text/html");PrintWriter out = res.getWriter();String name = req.getParameter("persnr");out.println("<HTML>");out.println("<HEAD><TITLE>Number, " + name + "</TITLE></HEAD>");out.println("<BODY>");out.println("Your number is " + name);out.println("</BODY></HTML>");}public void doPost(HttpServletRequest req, HttpServletResponse res)throws ServletException, IOException {doGet(req, res);}}
Received on Friday, 18 June 1999 15:45:10 UTC