Question: I am new to java servlets. I studied some code about servlet but I really want to know more basic things and how it works. I just wonder what type of material/content can be sent from java servlet to a browser. Like http request or something? And how does brower know how to deal with this material? In addtion, for java bean. I know it is a java class. But, what is the purpose behind the development of the java bean concept.

Answer: 
You need to do some background reading, start with something such as this [tutorial](http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Servlets.html)

We can answer specific questions when you get stuck, but conceptual material is not best addressed by a Q&A site such as this.

We usually use servlets that understand the HTTP protocol, so a browser sends an HTTP request, the servlet sends a response. Often the response is in the form of HTML which browsers know how to render into a nice human-readable page.

Java Beans: don't worry about them yet, just think of them as yet another Java Class.
> 
> I really want to know more basic things and how it works. I just wonder what type of material/content can be sent from java servlet to a brower. Like http request or something? And how does brower know how to deal with this material? 
> 
> 
> 

Servlet sends HTTPResponse to the browser , and from the content-type header browser determines what type of data it is. is it a pdf, audio file ..

> 
> for java bean. I know it is a java class. But, what is the purpose behind the development of the java bean concep
> 
> 
> 

**See** [What is the point of JavaBean](https://stackoverflow.com/questions/4275897/whats-the-point-of-beans/4275933#4275933)