April 2016

JSP JSTL Core Tags – contd.

By | 2017-07-14T22:22:16+00:00 April 17th, 2016|JSP|

JSTL IF Tag The If tag evaluates an expression and displays its body content only if the expression evaluates to true. In the example, we are going to display “Special Discount” if a student is a gold customer. Code Example <c:if test="${tempStudent.goldCustomer}"> Special Discount </c:if> Explanation So this code basically is just checking whether a [...]

JSP JSTL Core Tags

By | 2017-07-14T22:22:01+00:00 April 17th, 2016|JSP|

As you know there are five collections of tags in JSTL, in this tutorial, we are going to discuss some of the core tags in the JSTL library. Now in JSTL Core Library, there are approximately 15 tags. Let’s quickly go through them one by one. […]

March 2016

State management in JSP – 2

By | 2017-07-14T22:20:49+00:00 March 24th, 2016|JSP|

So in this tutorial we are going to explore cookies and we’ll see how can they be used in JSP. We’ll take a look at: Exactly what are cookies? The Cookies API. […]

JSP & HTML Forms – 1

By | 2017-07-14T22:19:27+00:00 March 7th, 2016|JSP|

All of us, at one point or another, have interacted with HTML forms on websites. Whether you sign up/in on websites, or you make reservations through an agency’s portal, you are putting information into HTML forms. The following is an example HTML form. […]

More JSP Fundamentals

By | 2017-07-26T19:49:29+00:00 March 2nd, 2016|JSP|

As we previously discussed, you shouldn’t put a lot of java code in your jsp page. It’s ok to add small bits of scriptlets and declaration but if you can’t avoid it, it is better to refactor the code and make separate classes for them. Make sure to refactor the extra code into separate Java [...]