C. public class RecordServlet extends HttpServlet
{
protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
PrintWriter pw=res.getWriter();res.setContentType("text/html");String account-req.getParameter("txtname1");String Addr=req.getParameter("txtadd1");pw.println("Hello" + account + "from" + Addr);pw.close();
}
}
D. public class RecordServlet extends HttpServlet
{ protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
{
PrintWriter pw=res.getWriter();res.setContentType("text/html");String account-req.getParameter("txtname2");String Addr=req.getParameter("txtadd2");pw.println("Hello" + account + "from" + Addr);pw.close();
}