You need to get a PrintWriter object and then it should work:
PrintWriter pw = response.getWriter();
pw.println("The user name you provided is incorrect");
Ken
-----Original Message-----
From: Suresh Kumar Nittala [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 01, 1999 11:13 AM
To: [EMAIL PROTECTED]
Subject: Using out.println to write on the browser - Doesn't Work !!!
Hi,
If the entered information by the user doesn't match with the information
existing in the database then I wish to print a message on the browser to
the end user which explains as given below.
For Example:
By using System.out.println ("The user name you provided is incorrect.");
prints in the java console. (Works perfectly)
By using out.println ("The user name you provided is incorrect.");
gives an error. (Doesn't Work.)
Can anybody help me how to do the same.
Regards,
Suresh Kumar
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html