What Are Implicit Objects Available to the JSP Page

Implicit objects are the objects available to the JSP page. These objects are created by Web container and contain information related to a particular request, page, or application. The JSP implicit objects are: Application, config, exception, out, page, pageContext, request, response andsession. In JavaServer Pages (JSP), there are several implicit objects available that can be … Read more

Name One Advantage of JSP Over Servlets

Can contain HTML, JavaScript, XML and Java Code whereas Servlets can contain only Java Code, making JSPs more flexible and powerful than Servlets. However, Servlets have their own place in a J2EE application and cannot be ignored altogether. They have their strengths too which cannot be overseen. One advantage of JavaServer Pages (JSP) over Servlets … Read more

What is the Difference Between and response.sendRedirect(url)?

TheĀ element forwards the request object containing the client request information from one JSP file to another file. The target file can be an HTML file, another JSP file, or a servlet, as long as it is in the same application context as the forwarding JSP file. sendRedirect sends HTTP temporary redirect response to the browser, … Read more

What is the Difference Between Following

Both the tags include information from one JSP page in another. The differences are: < jsp : include page = … > This is like a function call from one jsp to another jsp. It is executed ( the included page is executed and the generated html content is included in the content of calling … Read more

What do you Understand by JSP Actions

JSP actions are XML tags that direct the server to use existing components or control the behavior of the JSP engine. JSP Actions consist of a typical (XML-based) prefix of “jsp” followed by a colon, followed by the action name followed by one or more attribute parameters. There are six JSP Actions: < jsp : … Read more