aspose file tools*
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
JavaRanch » Java Forums » Products » Tomcat
Bookmark "jsp mails in tomcat" Watch "jsp mails in tomcat" New topic
Author

jsp mails in tomcat

suresh chakkilam
Greenhorn

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
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Illegal address
Plz. help me in configuring the Tomcat 4.1 for this purpose.
With regards
csk
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61768
    
  67

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.
hth,
bear


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Rob Singley
Greenhorn

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....

Thanks,

Rob



William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12835
    
    5
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.
Bill
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Look here: sendDatMail(args[]);

what's the [] doing there?
Rob Singley
Greenhorn

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....

Thanks..

Rob
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsp mails in tomcat