Category Archive for: Java Server Pages

JSP Directives

Directives are those which tell the JSP engine how to translate a JSP page into the corresponding servlet. Directives provide directions and instructions to the container, telling it how to handle certain aspects of JSP processing. JSP directive affects the overall structure of the servlet class. It usually has the following form: <%@directiveattribute=”value”%> Page Directive:…

Read More →

JSP Exception Handling

JSP Looping

Like we do in our JAVA system, we do have the lopping process which will be helpful in our proceeding learning’s. Sample programs for the looping concepts are mentioned below: IF Statement: <html> <head> <title>If Else </title> </head> <body> <% int a = 5; if(a > 0) out.println(“’a’ is greater than zero and has the value ” + value ); %> </body> </html>…

Read More →

JSP Syntax Elements

JSP has the below formats used as syntax: Scriplet Tag: A scriplet is nothing but JAVA statements which contain methods declarations and variables initialization. Syntax:  <% code %> Sample Program: <title>Sample JSP</title> </head> <body> <H1>Sample JSP</H1> <% out.println(“Sample JSP code.”); %> </body> </html> Output: Expression Tag: This is a tag where expression is evaluated and converted…

Read More →

JSP Working Environment Setup

For setting up of environment we need the below which are essential: JDK and JRE: To start with you need a JDK (Java Development Kit) and a JRE (Java RunTime Edition) installed which can be downloaded from the below oracle website. A standard Platform (Eclipse): We can start practising in the eclipse, which is most…

Read More →

JSP Architecture & Model

Architecture of JSP: There were primarily two types of architecture based on the JSP functionality and its improvement in the further days of its development. With the above criteria we have two types of architecture as below: Model Type 1 of Architecture Model Type 2 of Architecture Model 1 type of Architecture: The processing of…

Read More →

JSP Introduction

JSP is an acronym of Java Server Page. Java Server Pages (JSP) is a technology that helps software developers create dynamically generated web pages based on HTML, XML, or other document types. JSP was released in 1999 by Sun Microsystems and it uses the Java programming language. What is a JSP? JSP is a file extension for Java Server Pages file format.  A JSP…

Read More →

Back to Top