- Hello guys
I am trying to write a simple servlet where I want to input Company
Name (cname) and Address (add) . I am enclosing my code with this msg.
(please dont laugh)
Please correct my code if it is wrong
Love All
Monalisa
Title: Moloy's Servlet Demo... import java.io.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; public class mservlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse res) throws ServletException, IOException { res.setContentType("text/html"); PrintWriter out = res.getWriter(); String cname = ""; String add = ""; int cnt = 1; try { //Display the result set as a list out.println(""); out.println(""); while(cnt == 1) { out.println("