• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error while running jsp

 
here iam
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64620
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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 ]
 
gao zhixin
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic