File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes jsp mails in tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "jsp mails in tomcat" Watch "jsp mails in tomcat" New topic

jsp mails in tomcat

suresh chakkilam

Joined: Feb 19, 2003
Posts: 1
Hai !
I am just trying to send mails in JSP. But I am getting the following error
type Exception report
description The server encountered an internal error () that prevented it from fulfilling this request.
org.apache.jasper.JasperException: Illegal address
Plz. help me in configuring the Tomcat 4.1 for this purpose.
With regards
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63873

This has nothing at all to do with Tomcat, and you've not given near enough information on what you are doing to try and diagnose your problem.
If you are using JavaMail to send your mail from your JSP (why aren't you doing this type of processing in a servlet?), I'd suggest posting your question (including the relevant code embedded in UBB code tags) in this forum.
Otherwise, perhaps the JSP or Servlets forum would be appropriate.

[Asking smart questions] [About Bear] [Books by Bear]
Rob Singley

Joined: Sep 20, 2004
Posts: 19
Hi Suresh,

Were you ever able to resolve this issue? I am receiving the exact error when trying to send an email. I think that the sendDatmail method in the below code is causing the error for me....I can't seem to find what would be causing the issue...maybe another set of eyes on my code would help....



William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
I STRONGLY suggest that you get all that code OUT of JSP and into a JavaBean type helper class. You can then test it outside the servlet/JSP environment - guaranteed to be much easier to test that way.
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Look here: sendDatMail(args[]);

what's the [] doing there?
Rob Singley

Joined: Sep 20, 2004
Posts: 19
I switched the code to sendDatMail(args); and still get the illegal address error....

I'm fairly new to jsp coding so it may be a bit ambitious of me to try and create a javabean helper class...

Could illegal address possibly mean that my "to" value is not being passed correctly and therefore the address is in fact not valid....


I agree. Here's the link:
subject: jsp mails in tomcat
It's not a secret anymore!