aspose file tools
The moose likes IDEs, Version Control and other tools and the fly likes E mail using JSP Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "E mail using JSP Error" Watch "E mail using JSP Error" New topic
Author

E mail using JSP Error

mahesh matele
Greenhorn

Joined: Jan 23, 2012
Posts: 23
Hi,

Adding to the above mail :

1)I have put the JAVAMAIL 1.4.4 folder in C:/ProgramFiles/JAVA folder and updated the path for the .jar files in classpath.
2)As i m developing in ECLIPSE i have also right clicked on project folder -->Properties-->Java Build Path -->Libraries Tab --> and added my mail.jar there through add external jars.

So now when i pasted the below code i did not see any red underlinings.
The code is :



When executing this i get the below error :



Why i m getting this error ?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5850
    
    7

Sounds like the mail.jar is not being included in the WAR deployed to Tomcat.


JBoss In Action
Paul Clapham
Sheriff

Joined: Oct 14, 2005
Posts: 19668
    
  10

And once you get that problem sorted out, you should read the JavaMail FAQ to find the right way to connect to Gmail. Your code is based on out-of-date examples which are still littering the internet.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16883
    
  26

And has no one mentioned that putting complex code in a JSP is a really, really, really bad thing thing to do?

Or, for that matter, that this wasn't the best forum to ask that question. We do have a forum where the JSP experts hang out!


Customer surveys are for companies who didn't pay proper attention to begin with.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5850
    
    7

Tim Holloway wrote:Or, for that matter, that this wasn't the best forum to ask that question. We do have a forum where the JSP experts hang out!

Actually, I think this was the proper forum because I think that the question is: "How do I configure Eclipse properly to get the mail JAR into my WAR?"
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: E mail using JSP Error
 
It's not a secret anymore!