JSP

Read Client Form Data JSP 3 Ways Example

request is an object of HttpServletRequest and is one of the 9 implicit objects, JSP supports. request object is used to retrieve client’s system (like IP address) information, client’s browser (header) information and the data entered by the client in the <form> fields. To retrieve what the client entered in the <form> fields, request object …

Read Client Form Data JSP 3 Ways Example Read More »

Difference between JSP forward and redirect

JSP forward vs JSP redirect The differenes are same as in the case of Servlets disucssed in 20 differences between forward and sendRedirect Methods. Anyhow, the same is reproduced replacing some minor terms. This posting discusses the difference between <jsp:forward> action and response.sendRedirect() method. Let us tabulate the differences of JSP forward vs JSP redirect. …

Difference between JSP forward and redirect Read More »

forward action with Parameters JSP Example

We studied jsp:forward earlier, the forward action usage, importance and when to prefer over jsp:include. Now let us go for the same jsp:forward but with parameters. With this feature supported by JSP, one JSP file can send the client request to another JSP file to fulfill, with extra information known as parameters. These parameter values …

forward action with Parameters JSP Example Read More »

Difference include action vs forward action JSP

include action vs forward action JSP Before going into this tabulation of include action vs forward action JSP, is is advised to read clearly about jsp:include action and jsp:forwrd action. The examples are given in simple terms and screenshots of explanation. Difference comes in the way they are treated by container. They are worked differently. …

Difference include action vs forward action JSP Read More »

Difference include directive vs include action JSP

Knowing the difference between JSP include directive and JSP include action is very important to a Programmer in terms of performance and for a fresher for interviews. Basically both are used to include HTML static page contents or a dynamic JSP page contents in another JSP file. We know in JSP Architecture how a JSP …

Difference include directive vs include action JSP Read More »

forward action with Parameter passing Example JSP

forward action with Parameter JSP We have seen earlier simple <jsp:forward> action. Now let us see the same forward action with an extra feature of parameters passing. With jsp:forward action, parameters can also be passed to including page. Included page reads the parameters from the including page. start reading forward action with Parameter JSP. Example …

forward action with Parameter passing Example JSP Read More »

isELIgnored JSP page directive with Example

The JSP 2.0 technology supports the usage of Expression Language (EL). With EL, it is easier to access applicaton variables using JavaBeans. EL also comes with expressions. The isELIgnored attribute value informs the container whether to evaluate or execute EL expression present in the JSP or not. isELIgnored JSP is one of the 14 attributes …

isELIgnored JSP page directive with Example Read More »

language JSP page directive with Example

language JSP page directive with Example language JSP is one of the 14 attributes, JSP supports. This attribute tells the container which language is being used to write the JSP page. Programmer declares the language with this attribute. language JSP Syntax: <%@ page language="java" %> The default language is Java and for this reason Programmer …

language JSP page directive with Example Read More »

session JSP page directive with Example

By nature, HTTP protocol is stateless and connectionless protocol. Stateless means, the server does not remember the client when once response is delivered. All the client data is deleted on server. Sometimes, client would like to do many interactions with the server to get complete information of a database table of a Bank account. Here, …

session JSP page directive with Example Read More »