Home » jsp

Tag Archives: jsp

MongoDB and JSP/Servlet Example

Hello readers, in this tutorial, we will learn how to connect the Servlet with the Mongo database. For this tutorial, we’ll have a login form to validate the user’s login credentials in the Mongo database. Table Of Contents 1. Introduction 1.1 What is Servlet? 1.2 What is JSP? 1.3 What is MongoDB? 2. MongoDB and JSP/Servlet Example 2.1 Tools Used ...

Read More »

Java Servlet and JSP Example

In this article we will demonstrate a simple Servlet and JSP example using the maven cargo plugin from the command line. We will also cover, albeit briefly, the functioning of both Servlet and JSP constructs within the Servlet Container in terms of how they are used to satisfy a HTTP request. The sample application will greet you with your name, ...

Read More »

JSP Expression Language Tutorial

EL means the Expression Language, which is used for accessing the data and makes it possible to easily access the application data stored in the JavaBean’s components and other objects like request, session, and application etc. The JSP expression language allows a page author to access a bean using a simple syntax such as $(expr). Table Of Contents 1. Introduction ...

Read More »

Struts JSP Example

Apache Struts2 is an elegant, extensible framework for creating the enterprise-ready Java web applications. The framework is designed to streamline the development cycle i.e. from building to deploying and to maintaining the applications over time. In this example, we will show developers how to create a simple Hello World example in Struts2. 1. Introduction 1.1 Struts Framework Struts framework is ...

Read More »

Jetty “JSP Support not Configured” Error

In this example, we will show how to resolve an error which is frequently encountered if you are using Java Server Pages (JSP). Java Server Pages is a server side technology and it is used to create dynamic java web application. JSP can be considered an extension to servlet technology. We will use embedded jetty to show the error and ...

Read More »

Jetty JSP Example

JSP (JavaServer Pages) which is core part of Java EE, enables developers to create dynamic web content based on the Java Servlet technology. In this example, we are going to enable Jetty for JSP. We will start with Embedded mode of Jetty. We are going to initialize our embedded Jetty to run JSP pages. Thereafter we will continue with standalone ...

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 »