aspose file tools
The moose likes JSP and the fly likes Error while running jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Reply 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: 56150
    
  13

"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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Error while running jsp
 
Similar Threads
How can I call a Servlet from a JSP page?
Internal Error while Validating username and password
Servlet help
problem without logout, how to solve it
form validation (stateform) and response.redirect()