File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes javabeans 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 "javabeans" Watch "javabeans" New topic
Author

javabeans

nirail rail
Ranch Hand

Joined: Nov 14, 2003
Posts: 39
HI

is there any software to create javabeans?

thanks
Vishnu Prakash
Ranch Hand

Joined: Nov 15, 2004
Posts: 1026
JavaBeans are nothing but java classes with certain standards.

1. you should have public no-args constructor
2. have getter and setter methods
3. after stripping the get and replacing the first character of whats left to lower case is your property name.
4. property names should be derived from methods and not from members of the class.
5. return type of getter and argument of setter should match.

These are some of the rules you should adhere to when you write a java bean.


Servlet Spec 2.4/ Jsp Spec 2.0/ JSTL Spec 1.1 - JSTL Tag Documentation
nirail rail
Ranch Hand

Joined: Nov 14, 2003
Posts: 39
Thanks Vishnu Prakash


i know i was intrested in knowing is there any IDE / Software which will return a javabean class if we pass it with varible names

thanks
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Most IDEs have a wizard for creating Java Objects.
If you follow the guidlines posted by Vishnu in this thread, you should be able to create Javabeans with any of them.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javabeans
 
Similar Threads
Is package name necessary for jspUsebean tag?
javabeans
justify answer object reuse
Handling dynamic configuration data
java beans