there is no semicolon after
out.println(" Address.: ")
Moloy Biswas wrote:
>
> 1. 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
>
> 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(" Address.: ") out.println("
> *" + request.getParameter("cname") + " " +
> request.getParameter("add")); cnt = 2; } out.println("
>
> "); out.println(""); } catch (Exception e) { out.println("Exception
> caught: "); } } }
___________________________________________________________________________
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