This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSP and the fly likes java beans and custom tags Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "java beans and custom tags" Watch "java beans and custom tags" New topic
Author

java beans and custom tags

jonny jinny
Greenhorn

Joined: Oct 29, 2002
Posts: 11
Hi!
I have a confusion regarding java beans and custom taglibs used with jsp's.
What one should prefer beans or taglibs while programming and why?
I wouold like to know some good comparison points between both techno's.
Thanks
Fisher Daniel
Ranch Hand

Joined: Sep 14, 2001
Posts: 582
Both are reuseable component and to reduce the length of our scriptlet...
Tags is used to process computational logic, and Beans is used to handle data..
Tags are thread safe and Beans are not.
Tags are aware of the environment and Beans are not.
Tags can access implicit object and Beans cannot
Correct me if i am wrong
daniel
jonny jinny
Greenhorn

Joined: Oct 29, 2002
Posts: 11
ur correct.
please tell me one should prefer using wht in which scenario??
Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java beans and custom tags