This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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

JavaRanch » Java Forums » Java » Servlets
Bookmark "getFileBodyPart undefined for the type" Watch "getFileBodyPart undefined for the type" New topic

getFileBodyPart undefined for the type

Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 761
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: 15302

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

GenRocket - Experts at Building Test Data
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: getFileBodyPart undefined for the type
It's not a secret anymore!