This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes General Computing and the fly likes servlet 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 » General Computing
Bookmark "servlet" Watch "servlet" New topic


ajay verma
Ranch Hand

Joined: Dec 10, 2007
Posts: 37
what is the exact meaning of mime(multipurpose internet mail extension)?
pls let me know asap.
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

a verma,
Welcome to JavaRanch!

In an effort to help you get the most from our forums, we've compiled a
list of tips for asking questions here. You can find the list in our
FAQ section here.
In particular please see:
The subject line 'servlet' is completely unrelated to your question.

Also see EaseUp to find out why adding things like 'urgent' or 'asap' to your posts will tend to slow down or halt responses to your questions altogether.

Lastly, please see

Abbreviations such as "u" or "ur" in
place of "you" and "you are" or "you're" confound language translation software making
it hard for our non-English speaking members to read your posts.
"plz" is not a word in the English language.

Again, welcome to JavaRanch and good luck with your question.

I'm going to move this thread to our General Computing forum.
Mime types are used in many technologies besides JSP.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

The mime type is a short string (usually passed in a header) that lets a an application know what type of content it is receiving.

For instance, when a browser makes a request to a server, it expects the response to be of type 'text/html'. Often however, the browser will send something else, like an image, a spread sheet, or a PDF document. In these cases, the application sending the content can let the receiving application know what it is with content-type or mime type header.

Since you originally asked this question in the JSP forum, I'll mention that the HttpServletResponse object has a setContentType method that can be used to set this header.
jQuery in Action, 3rd edition
subject: servlet
jQuery in Action, 3rd edition