Suresh,
You
don't need to call a method from your JSP in order to print out a message to the
browser.
Just
write something like:
<HTML>
<BODY>
<% if (User info In database) {
%>
<EM>
You're OK buddy! </EM>
<% } else {
%>
The user
name you provided is incorrect.
<% } %>
</BODY>
</HTML>
-AMT
-----Original Message-----Hi,
From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Suresh Kumar Nittala
Sent: Wednesday, December 01, 1999 10:13 AM
To: [EMAIL PROTECTED]
Subject: Using out.println to write on the browser - Doesn't Work !!!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
