Series: JSP

JSP made easy with concepts explained in simple terms, example codes with screenshots

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 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 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 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 »