I\'ve bean doing some JSP tutorials and I don\'t understand what the point of a bean class is. All it is, is get and set methods. why do we use them?
public
You can have JSP without beans, however, the result will be that both the code taking care of the logic and the code taking care of the aesthetics of the site will be jumbled up. This is not ideal especially since in most situations, a group of people codes the logic and another group of people take care of the aesthetics, so beans allow a degree of separation which makes life easier for the people building the website.
Beans also allow you to reuse the code, which is another reason why you should use them.