W3C home > Mailing lists > Public > www-jigsaw@w3.org > May to June 1999

THANKS - IT'S RUNNING:-)

From: Ragna-Lena&Dan <prepare.enrich@telia.com>
Date: Fri, 18 Jun 1999 14:20:57 -0400 (EDT)
Message-ID: <003301beb9b7$2bd22a60$61b8143e@dan>
To: "jigsaw <== dan" <www-jigsaw@w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:29 GMT