wood burning stoves*
The moose likes Servlets and the fly likes how to send error message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to send error message" Watch "how to send error message" New topic
Author

how to send error message

gaurav chhabra
Ranch Hand

Joined: Jul 24, 2004
Posts: 109
sir
how to send the error message to the client if i like to send the error message through the servlet..like i have to check for the user name and password and if the user enters the entries wrong then the servlet should respond with an error message.
thank you
gaurav
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Bind the message string with the request object as an attribute like,


[ February 08, 2005: Message edited by: Adeel Ansari ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to send error message
 
Similar Threads
Sending multipart message
JTextField
servlet
How to validate HTML form using servlet
handle exception in servlet