U cannot give braces { for passing in parameters
That's what u have done in u'r passing of parameters to doGet method
U should use () instead of {}
----------
From: Paresh Gheewala [SMTP:[EMAIL PROTECTED]]
Sent: Monday, December 27, 1999 11:52 AM
To: [EMAIL PROTECTED]
Subject: Re: A silly Question
Hi,
you have not completed the function.
i.e. doGet is in-complete
plz. check it.
Moloy Biswas wrote:
> I am a starter in Servlets. While writing the practice code I got
the
> following error :
>
> moloyservlet.java:7: ';' expected
> public void doGet^
>
> moloyservlet.java:8: Instance variable can't be void: doGet
> {^
>
> 2 errors
>
> My code for moloyservlet.java is given below :
>
> import java.io.*;
> import javax.servlet.*;
> import javax.servlet.http.*;
>
> public class moloyservlet extends HttpServlet
> {
> public void doGet
> {
> HttpServletRequest req,
> HttpServletResponseres
> } throws
> ServletException
> IOException
> {
> res.setContentType( "text/html" );
> ServletOutputStream out = res.getOutputStream();
> out.println( "<html>" );
> out.println( "<head><title>Hello Moloy is
> here</title></head>" );
> out.println( "<body>" );
> out.println( "<h1>Hello Moloy</h1>" );
> out.println( "<p>Congrats,your first servlet is
> working</p>" );
> out.println( "</body>" );
> out.println( "</html>" );
> out.close();
> }
> }
>
> Pl help ....
>
> Moloy
>
> --------------------------------------------------------------
> SREI INTERNATIONAL FINANCE LTD., CALCUTTA, INDIA
>
>
___________________________________________________________________________
> 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
--
------------E-Card For Paresh M Gheewala----------------
[EMAIL PROTECTED] / Software Engineer ( R & D )
[ Versaware Technologies (I) Pvt. Ltd. ]
'E' Building, Liberty, North Main Road,
Koregoan Park Pune -1 ( Maharastra ) - 411001. India.
Ph : +91-020-4355284 (R - Pune)
+91-0261-420668 (R - Surat)
+91-020-636028 (O)
Visit : http://www.versaware.com
---------------T h a n k Y o u -----------------------
___________________________________________________________________________
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
___________________________________________________________________________
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