wood burning stoves 2.0*
The moose likes JSP and the fly likes Error while running jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Error while running jsp" Watch "Error while running jsp" New topic
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: 61084
    
  66

"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 ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Error while running jsp