This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes  jsp Beans? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark " jsp Beans?" Watch " jsp Beans?" New topic
Author

jsp Beans?

Sals Hamid
Greenhorn

Joined: Jan 04, 2002
Posts: 24
Why we use jsp beans. What is the main purpose of using it.


No Path of Flowers lead to glory
Roy Ben Ami
Ranch Hand

Joined: Jan 13, 2002
Posts: 732
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.
 
Don't get me started about those stupid light bulbs.
 
subject: jsp Beans?
 
Similar Threads
Executing JavaBean with JSP in WAS 3.5
WA #1.....word association
java beans
why is this JS validation function failing?
any open source technologies for converting a j2ee app to another language like spani