Wednesday, October 28, 2015

JSP Page Directive

JSP page directive: The page directive in JSP is used by programmers to get the structure of the auto generated servlet modified according to their requirements. It has following syntax: Commonly used attributes of the page directive are: 1. import: This attribute is used to get the specified packages imported in the auto generated servlet […]
Read Complete Post...

Tuesday, October 27, 2015

JSP include directive

JSP include directive? include directive in JSP, is used by application programmers to get the contents of a page included to the current JSP at the time of translation. It has following syntax: You may recall that <jsp:include …/> action also has the same functionality. Now you should be wondering why are both the action […]
Read Complete Post...

JSP Directive

What is a directive? A directive in JSP, represents an instruction to the translator to modify the structure of the auto generated servlet at the time of translation on behalf of the programmer. You have been already told that for each JSP, a servlet class is auto generated. Sometimes modifications are required in this servlet […]
Read Complete Post...

Wednesday, October 7, 2015

Practical example of external objects in JSP

Practical use of external objects in JSP: To demonstrate the use of external objects with the help of useBean, setProperty & getProperty actions, I have created a simple web application. Following diagram describes the flow of application: Description of the diagram: Source code of the application: First, the home page index.html. <b>Rectangle Home</b> <form action="rect.jsp"> […]
Read Complete Post...

Tuesday, October 6, 2015

JSP getProperty action tag


getProperty action of JSP: <jsp:getProperty /> action is used to write the value a bean property to the output stream. It is used when a property value is to be sent as response. It has following syntax: Let following be an external object in a JSP page. To write the value of mailId property of […]
Read Complete Post...

JSP useBean action tag

External objects in JSP: In a JSP page, two types of objects can be used: 1. implicit objects 2. external objects Implicit objects are Servlet & JSP API objects which are made available by default in the _jspService() method. External objects are objects of user defined or library classes which are created in the _jspService() […]
Read Complete Post...

Action tags of JSP

The Action tags of JSP: Action tags in JSP facilitate automation of common operations such as creation of objects, setting objects’ properties, writing objects’ property values to the output stream, including the contents of a component to the response of current request and forwarding request to another component etc. An action tag has following syntax: […]
Read Complete Post...