- From: Benoit Mahe <Benoit.Mahe@sophia.inria.fr>
- Date: Thu, 12 Nov 1998 15:28:53 +0100
- To: "Juraj Kazda" <jerry@frkis.utc.sk>
- cc: www-jigsaw@w3.org
I just test your servlet, and it works fine with my configuration. Can you describe your configuration? CLASSPATH? JDK? OS? Regards, Benoit. "Juraj Kazda" writes: > This is a multi-part message in MIME format. > > ------=_NextPart_000_0011_01BE0E2E.884106C0 > Content-Type: text/plain; > charset="iso-8859-2" > Content-Transfer-Encoding: quoted-printable > > Hi, > > I have a problem. Jigsaw 2.0beta3 reports everytime "Servlet has thrown = > exception:java.lang.ClassCastException". Maybe I'm stupid, but I don't = > understand it... > If I change the doGet(..) to service(..), it works... But doPost(..) and = > doGet(..) doesn't. > > This is my html: > > <HTML> > > <HEAD> > <TITLE>My form</TITLE> > </HEAD> > > <BODY> > Type your username: > <B>Login: </B> > <FORM ACTION=3D"http://localhost:8001/servlets/LoginServlet" = > METHOD=3D"get"> > <INPUT TYPE=3D"text" NAME=3D"login"> > <INPUT TYPE=3D"submit" VALUE=3D"Go!"> > </FORM> > </BODY> > > </HTML> > > And this teh servlet code: > > import javax.servlet.*; > import javax.servlet.http.*; > import java.io.*; > > public class LoginServlet extends HttpServlet { > > public void doGet(HttpServletRequest req, HttpServletResponse res) = > throws ServletException, IOException { > ServletOutputStream out =3D res.getOutputStream(); > res.setContentType("text/plain"); > out.println("Hello Login"); > out.close(); > } > =20 > } > > Can some help me? > -------------------------------------------------------------------------= > - > Juraj Kazda > department of information networks > faculty of management science and informatics > University of Zilina > Velky Diel > 010 26 Zilina > tel.: +421 89 672 341 > fax : +421 89 655 530 > www: http://winkis.utc.sk/jerry > -------------------------------------------------------------------------= > - - Benoît Mahé ------------------------------------------------------- World Wide Web Consortium (W3C) Architecture domain - Jigsaw Team http://www.w3.org/People/Mahe - bmahe@w3.org - +33.4.92.38.79.89 ---------------------------------------------------------------------
Received on Thursday, 12 November 1998 09:30:53 UTC