What is the difference between custom JSP tags and JavaBeans ?

In the context of a JSP page, both accomplish similar goals but the differences are:
Custom Tags :
  • Can manipulate JSP content.Custom tags can simplify the complex operations much better than the bean can.
  • But require a bit more work to set up.  
  • Used only in JSPs in a relatively self-contained manner.
JavaBeans :
  • Can't manipulate JSP content.Easier to set up.
  • Can be used in both Servlets and JSPs.
  • You can define a bean in one Servlet and use them in another Servlet or a JSP page.

Enter your email address to get our daily JOBS & INTERVIEW FAQ's Straight to your Inbox.

Make sure to activate your subscription by clicking on the activation link sent to your email