Hi
we want to know that what are the difference between JavaBeans and taglib directives.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Satyapriya NayakPosted Apr 16, 2012, 10:27 PM
The directive "<%@ taglib %>" declares that the JSP file uses custom tags, names the tag library that defines them, and specifies their tag prefix. Here, the term custom tag refers to both tags and elements.
Syntax: "<%@ taglib uri= "URIToTagLibrary" prefix="tagPrefix" %>" Taglib are for generating presentation elements.
A Java Bean is a reusable software component that can be visually manipulated in builder tools. They can't manipulate JSP content. They 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. JavaBeans are good for storing information and state.
Thanks