This week's giveaway is in the JDBC forum.
We're giving away four copies of Java Database Connections & Transactions (e-book only) and have Marco Behler on-line!
See this thread for details.
Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

jsp mails in tomcat  RSS feed

 
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
 
Sheriff
Posts: 67260
170
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
 
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



 
Author and all-around good cowpoke
Posts: 13078
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
 
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
 
The City calls upon her steadfast protectors. Now for a tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!