jsp

JSP Directives Example

JSP directives are messages to the JSP container. Directives play role when a JSP page is re-compiled after you modify it, they have no specific effect on the current out stream. They provide global information about an entire JSP page. In this post, we will look into the details of the JSP directives and examine them on some code snippets. ...

Read More »

Jsp Scriptlet Example

JSP technology enables you to add dynamic content to web pages with scripting elements. In a JSP page, a Scriptlet is a block of Java code enclosed by the pair <% and %>. In this post, we will demonstrate how to use scriptlets in a web application example. Every Java executable statements – variable declarations, manipulating Java objects, invoking the ...

Read More »

JSP Custom Tags Example

JSP standard actions, such as the <jsp:useBean> and <jsp:getProperty> actions and JSTL ( JSP Standard Tag Library ) libraries are HTML-like elements for commonly needed operations in a JSP page like executing some functions, accessing data, formatting text and invoking other JSP pages. However, for a complex application, these generic actions may not be enough. Perhaps you want to develop ...

Read More »

JSP Tutorial For Beginners

JSP is a server side technology which helps to create dynamic, platform-independent java web applications and is mainly used for implementing the presentation layer. In this tutorial, we will look into the essentials of the JSP technology with illustrating some simple code. As a prerequisite of this post, we assume you have knowledge what is HTML, web server and Java ...

Read More »

JSP Implicit Objects Example

In this example we are going to explain what are the implicit objects in a jsp page and what is their functionality, as well as show some examples of their usage. 1. Implicit objects in a jsp page When we are creating a Java web application, we are using some Java specific technologies, more specifically servlets and jsp pages. Jsp ...

Read More »

Eclipse JSP Editor Example

In this example, we will learn to use the JSP Editor available through the Web Tools Platform (WTP) within Eclipse. JavaServer Pages (JSP) technology, (part of Java Enterprise Edition – JEE), provides a simplified way for rapid development of web-based applications that are server- and platform-independent. It helps Java developers to create dynamically generated web pages based on HTML, XML, ...

Read More »

Conditional content in JSP page

With this example we are going to see how to create a conditional content in a JSP page. JavaServer Pages (JSP) is a server-side programming technology that enables the creation of dynamic, platform-independent method for building Web-based applications. JSP have access to the entire family of Java APIs, including the JDBC API to access enterprise databases. In short, to create ...

Read More »

Create an error page for JSP pages

This is an example of how to create an error page in JSP pages. JavaServer Pages (JSP) is a server-side programming technology that enables the creation of dynamic, platform-independent method for building Web-based applications. Creating an error page implies that you should: Create a jsp page. Inside the <%code fragment%> scriptlet define the java code to be executed. Add any comments ...

Read More »

Comments in JSP Page

In this example we shall show you how to add comments in a JSP page. JavaServer Pages (JSP) is a server-side programming technology that enables the creation of dynamic, platform-independent method for building Web-based applications. JSP have access to the entire family of Java APIs, including the JDBC API to access enterprise databases. To add comments in a JSP page one should ...

Read More »

Use Bean in JSP Page

With this example we are going to demonstrate how to use a Bean in a JSP page. JavaServer Pages (JSP) is a server-side programming technology that enables the creation of dynamic, platform-independent method for building Web-based applications. JSP have access to the entire family of Java APIs, including the JDBC API to access enterprise databases. In short, to use a ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns