This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Servlets and the fly likes getFileBodyPart undefined for the type Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "getFileBodyPart undefined for the type" Watch "getFileBodyPart undefined for the type" New topic
Author

getFileBodyPart undefined for the type

Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 751
Gives me error :
method getFileBodyPart is undefiened for the type sendMail. sendMail is the name of my servlet.

Multipart mp = new MimeMultipart("alternative");
String textFile = (String)props.get("filenam");
BodyPart bp1 = getFileBodyPart(textfile, "text/plain");
[ December 17, 2006: Message edited by: Bear Bibeault ]

Jigar Naik


Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15286
    
    6

This feels like a JavaMail API problem. Moving to Other Java API's.


GenRocket - A Test Data Generation Platform
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getFileBodyPart undefined for the type
 
Similar Threads
Importing large number of rows
getFileBodyPart... undefined for the type...
Pretty new to Java, require wisdom. (Long)
Sending Mail..Authenticate
Trying to implement a mail queue in JavaMail using ExecutorService