| Author |
Error while running jsp
|
here iam
Greenhorn
Joined: Feb 06, 2006
Posts: 1
|
|
Error: A java exception has occurred during the processing of this request. Error occurred in JSP element starting at line number 20 javax.servlet.jsp.JspTagException: I/O Error: java.net.SocketException: Connection reset at desisoft.jsp.tagext.SendMail.doAfterBody(SendMail.java:213) at desisoft_jsp_SendMail_jsp1139292195218._jspService(desisoft_jsp_SendMail_jsp1139292195218.java:111) at desisoft.server.JspBaseClass.service(JspBaseClass.java:48) Code: <%@ taglib prefix="blx" uri="/blx.tld" %> <HTML> <BODY> <% // Get username. String email = request.getParameter( "email" ); %> <% if ( email == null || email.equals( "" )) { %> Please enter an email address. <% } else { %> <blx:email host="mail.xxx.com" from="xxxxxx@indiatimes.com"> <blx:emailTo><%= email %></blx:emailTo> Thank you for registering with us. You registered the following name: <%= request.getParameter( "username" ) %> Your registration was received at <%= new java.util.Date() %> Attached, please find a contents file. </blx:email> <!-- Also write out some HTML --> Thank you. A confirmation email has been sent to <%= email %> <% } %> </BODY> </HTML> Can anybody tell me why this problem is occuring
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56150
|
|
"here iam", There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it. In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious. Thanks! bear JavaRanch Sheriff [ February 06, 2006: Message edited by: Bear Bibeault ]
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
gao zhixin
Ranch Hand
Joined: Jan 18, 2006
Posts: 42
|
|
|
I don't see you code, but I really suggest you use JSTL instead of scriplet.And if you project is big , use a MVC framework instead.
|
 |
 |
|
|
subject: Error while running jsp
|
|
|