This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp mails in tomcat

 
suresh chakkilam
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64838
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Rob Singley
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look here: sendDatMail(args[]);

what's the [] doing there?
 
Rob Singley
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic