Friday, 17 February 2012

What is a Java package and how is it used? | Java JSP

A Java package is a naming context for classes and interfaces. A package is used to create a separate name space for groups of classes and interfaces. Packages are also used to organize related classes and interfaces into a single API unit and to control accessibility to these classes and interfaces.

What is the difference between a Scrollbar and a ScrollPane in JSP? | Java JSP

A Scrollbar is a Component, but not a Container. A ScrollPane is a Container. A ScrollPane handles its own events and performs its own scrolling.

What is the ResourceBundle class in JSP? | Java JSP

The ResourceBundle class is used to store locale-specific resources that can be loaded by a program to tailor the program’s appearance to the particular locale in which it is being run.

Is JSP technology extensible? | Java JSP

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

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

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.

How many JSP scripting elements and what are they? | Java JSP

There are three scripting language elements:
  1. declarations
  2. scriptlets 
  3. expressions. 

What are the implicit objects in JSP? | Java JSP


Implicit objects are created by the web container and contain information related to a particular request, page, or application. They are request, response, pageContext, session, application, out, config, page and exception.