File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp Beans?

 
Sals Hamid
Greenhorn
Posts: 24
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why we use jsp beans. What is the main purpose of using it.
 
Roy Ben Ami
Ranch Hand
Posts: 732
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
its java beans not jsp beans, although u can use java beans in jsp pages as well.
java beans are just regular java classes with some rules (for example u have to have get and set methods for properties and an empty constructor etc..).
we use java beans in jsp page to seperate raw java code from html code.
usually in jsp page we will use html tags and a few jsp tags to display the page and the rest of the java code (like connecting to database) we will put inside another java class (a servlet or a javabean) and use it in the jsp page.
hope its a bit more clearer.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic