What is difference between custom JSP tags and beans?

March 7th, 2007 Admin Posted in JSP(java server pages) interview questions No Comments »

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. Custom tags and beans accomplish the same goals – encapsulating complex behavior into simple and accessible forms. There are several differences:
o    Custom tags can manipulate JSP content; beans cannot.
o    Complex operations can be reduced to a significantly simpler form with custom tags than with beans.
o    Custom tags require quite a bit more work to set up than do beans.
o    Custom tags usually define relatively self-contained behavior, whereas beans are often defined in one servlet and used in a different servlet or JSP page.
o    Custom tags are available only in JSP 1.1 and later, but beans can be used in all JSP 1.x versions.

AddThis Social Bookmark Button

Is JSP technology extensible?

March 7th, 2007 Admin Posted in JSP(java server pages) interview questions No Comments »

Yes, it is. JSP technology is extensible through the development of custom actions, or tags, which are encapsulated in tag libraries.

AddThis Social Bookmark Button

Why are JSP pages the preferred API for creating a web-based client program?

March 7th, 2007 Admin Posted in JSP(java server pages) interview questions No Comments »

Because no plug-ins or security policy files are needed on the client systems(applet does). Also, JSP pages enable cleaner and more module application design because they provide a way to separate applications programming from web page design. This means personnel involved in web page design do not need to understand Java programming language syntax to do their jobs.

AddThis Social Bookmark Button