Logo F2FInterview

JSP Interview Questions

Q   |   QA

There are certain objects that can be used in JSP pages without declaring it first. They are called implicit objecs.These objects are parsed by the JSP engine and inserted into the generated servlet. The implicit objects are:

  • request
  • response
  • pageContext
  • session
  • application
  • out
  • config
  • page
  • exception

When a ‘forward’ request is called, the request is sent to another object on the server. This will be done without the client that called the request is made aware that another resource is going to process. This occurs within the web container and then returns to the method which calls the method.

When a ‘sendRedirect’ method is called it makes the web container to return to the browser mentioning the request of new URL.As the web browser is going to produce an entirely new request all the objects that are stored as attributes will be lost.

The ‘sendRedirect’ is relatively slower than the ‘forward’ request.

The scope values in JSP can be mainly attributed to the below listed:

  • page
  • request
  • session
  • application

Unlike applets, JSP doesn’t require any plug-ins or security policy files. In fact JSP provides more modular development of web pages and cleaner way of implementation. The complexity of understanding the syntax can be considered nil in the case of JSP.

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

In order to link this F2FInterview's page as Reference on your website or Blog, click on below text area and pres (CTRL-C) to copy the code in clipboard or right click then copy the following lines after that paste into your website or Blog.

Get Reference Link To This Page: (copy below code by (CTRL-C) and paste into your website or Blog)
HTML Rendering of above code: