This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Java Bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java Bean" Watch "Java Bean" New topic

Java Bean

Swati Gupta
Ranch Hand

Joined: May 28, 2002
Posts: 106
I have to create a simple java bean with some properties.
Can someone give me idea what can I do.
I will do the coding I just need the idea.
I am very new to this .Please provide me some links for creating a java beans.
Shivaji Marathe
Ranch Hand

Joined: Jan 11, 2002
Posts: 203
Check out this tutorial
Roberto Ingunza

Joined: Mar 12, 2002
Posts: 4
A Java Bean is only a class which complies with some programatic considerations. What I am trying to say is that EVERYTHING can be a Java Bean (and I mean EVERYTHING). The considerations I mention are some simple rules that are considered to be followed by tools that are going to use your classes (for example, GUI tools or JSP actions) You have to read the Java Beans specification so you can find out which considerations you have to have in mind. For example, an attribute in a Java Bean has to be defined as private, and you have to provide accesors (getter and setter methods) for the attribute. That's a kick-start for you, but I agree that you definitely would benefit from reading the Sun tutorial.
I agree. Here's the link:
subject: Java Bean
Similar Threads
Command Bean Frame Work
java bean to xml
Call a JacaScript function from Java Bean
Display pdf file contents through jsp
jta transaction and database