Hi Nic,
Thanks for the reply!
Here goes the code -

public class SiteChallanEntry extends HttpServlet {
...

public void init() throws ServletException {
        super.init();
// jdbc connections
  }

public void doGet(HttpServletRequest req,HttpServletResponse res)
      throws ServletException,IOException { try {
      res.setContentType("text/html");
      PrintWriter out = res.getWriter();
      out.println("<HTML><HEAD><TITLE> SITE CHALLAN ENTRY FORM </TITLE>");
      out.println("<SCRIPT language='JavaScript'>");
      // array initialization and JavaScript code
out.println("++i;");
// JavaScript code

out.println("</SCRIPT></HEAD><BODY>");
   out.println("<h1>Kanchan Carriers</H1>");
        out.println("<FORM name=F method=GET");

out.println("action='"+"'"+res.encodeURL("/servlet/SiteEntry")+"'"+"'>");
      // FORM DETAILS
        out.println("</TABLE><INPUT TYPE=SUBMIT
VALUE=ENTER></FORM></BODY></HTML>");
  } catch(Exception e) {}
  }

public void destroy() {
// DBConnection and resources freeing
}

 }

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to