What is difference between custom tags and JavaBean?

Questions by Fatima.sultana

Showing Answers 1 - 8 of 8 Answers

Surendhar

  • Nov 3rd, 2006
 

And in hindsight, you can use either a JavaBean or a custom tag to perform some tasks, such as manipulating strings or adding up numbers.The primary difference is that tags work directly on whatever's between the two tags, as in bold whereas JavaBeans are objects that actually save and offer data through the set and get methods.

  Was this answer useful?  Yes

surendhar

  • Nov 3rd, 2006
 

And in hindsight, you can use either a JavaBean or a custom tag to perform some tasks, such as manipulating strings or adding up numbers.The primary difference is that tags work directly on whatever's between the two tags, as in bold whereas JavaBeans are objects that actually save and offer data through the set and get methods.

  Was this answer useful?  Yes

delindia fathima

  • Dec 7th, 2006
 

Javabeans are used for encapsulating data management logic(ie., used for storage)whereas customtags are used for computational logic related to particular request.

Tags are thread safe,beans are not.It should be made threadsafe by developers.

Tags are aware of the environment in which they execute, beans are not.

Tags can access implict objects,bean cannot.

Tags have only page scope.Beans have different scopes.

Tags are not persistent.Beans are persistant

  Was this answer useful?  Yes

Srinivasan

  • Dec 29th, 2006
 

Custom tag is used to design  our own tag using taglib directive.

JavaBean used to define  a  core java manipulation.

Initialization the data using setter and getter method.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions