Archive for: July, 2014

JSP Page Directive

This directive is used to provide instructions to the container related to the current page. This directive can be coded anywhere in the JSP but formal users usually used to do it in the top of the page. Syntax of page directive can be written as below: <%@ page attribute=”value” %> Or in the form…

Read More →

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 →

Java History

Java is a high-level platform independent programming language. The Java language project was first started by James Gosling, Patrick Naughton, Chris Warth, Ed Frank, and Mike Sheridon in 1991 and Java 1.0 was first released by Sun Microsystems in 1995. Original name of Java is Oak. Prerequisites for Java: Basic knowledge of programming or Passion for programming. Why Java? Easy to…

Read More →

Java JRE, JVM & JDK

Knowledge about JRE, JVM & JDK is very important while learning Java. This section briefly describes about them. What is Java Runtime Environment (JRE)? Java Runtime Environment should be installed on any machine which provides the libraries that will be used by the JVM during runtime, JVM itself and other neccessary components to run java…

Read More →

Back to Top