Q What is the difference between JSP and Servlets ?
A
JSP
is used mainly for presentation only. A JSP can only be HttpServlet
that means the only supported protocol in JSP is HTTP. But a servlet can
support any protocol like HTTP, FTP, SMTP etc.
2 Q What is difference between custom JSP tags and beans?
A
Custom
JSP tag is a tag you defined. You define how a tag, its attributes and
its body are interpreted, and then group your tags into collections
called tag libraries that can be used in any number of JSP files. To use
custom JSP tags, you need to define three separate components: the tag
handler class that defines the tag's behavior ,the tag library
descriptor file that maps the XML element names to the tag
implementations and the JSP file that uses the tag library