JSP Tutorials
Sun Microsystems’ JSP (Java Server Page) technology, is an object-oriented programming language based on Java. JSP is used to develop interactive and dynamic web sites and create database driven web applications. JSP simplifies the development process, allowing programmers to input Java code directly into the HTML file or JSP file. JSP is a multi-platform, independent and portable language that complies with the Java feature of ‘write once, run anywhere’. JSP is efficient, reusable, robust and includes a clear division between presentation and implementation layers on the client and server sides, respectively. JSP provides programmers the capability to create code independently of the existing work of Java developers. Java Server Pages separates the content of the web page from the appearance of the web page.
Online training is provided on JSP along with relevant information for developers and programmers such as how to use JSP Tags, Directives, organization of JSP Architecture, Session Objects, Request Objects and working with JSP Sessions.
Current Java Technologies careers and employment exist for computer science professionals interested in Information Technologies, programming and development. A JSP developer will also want to be familiar with and knowledgeable about other software that complements JSP such as Flash, J2EE, Java Script, Oracle (8i/9i), JSP/Servlets, EJB, Perl, SOAP, Websphere, XML and LDAP.
JSP Introduction In this JSP tutorial, you will learn about JSP, usage of JSP, process of development, independency of layers and simplification of process. JSP or Java Server Pages, was developed by Sun Microsystems. JSP technology is object-oriented programming language and is based on Java language. In this section you will learn about JSP and some its important features. Usage of JSP: JSP is widely used for developing dynamic web sites. JSP is used for creating database driven web applications because it provides superior server side scripting support. Some of the reasons for the popularity of JSP are Simplifies the…
Steps for Setting JSP Environment In this JSP tutorial, you will learn the steps for setting JSP environment in Microsoft Windows, setting the PATH and CLASSPATH, steps for downloading and installing the Tomcat web server. The Java Server Page or JSP is very affordable as most of the software needed for it is easily available for free or at low cost. The Java Developer Kit which is available for free The Tomcat web server if used is available for free. HTML editor would be needed to purchase. How to set up the JSP Environment in Microsoft Windows: There are slight…
JSP Tags In this JSP tutorial, you will learn about JSP tags, list of the tags used in Java Server Pages, declaration tag, general syntax of declaration tag, expression tag and general syntax of expression tag. Tags are a vital concept in Java Server Pages (JSP). Below is a list of tags used in JSP. This section discusses Declaration Tag and Expression Tag in detail; syntax, usage with examples and explanations for both. List of the tags used in Java Server Pages: Declaration tag Expression tag Directive tag Scriptlet tag Action tag . Syntax, usage and example of Declaration Tag and…
JSP Directives In this JSP tutorial, you will learn about Directive tag with example, page directive, language, extends, import, session and buffer. Directive tag: The directive tag gives special information about the page to JSP Engine. This changes the way JSP Engine processes the page. Using directive tag, user can import packages, define error handling pages or session information of JSP page. General notation of directive tag is as follows: There are three types of directive tag. page Include Tag Lib Syntax and usage of directive tag page directive: General syntax for the page directive is <%@ page optional attribute…
JSP Page Directive In this JSP tutorial, you will learn about JSP page directive, attributes of the page directive along with syntax, examples and explanations. autoFlush: autoFlush attribute is used to specify whether or not to automatically flush out the output buffer when it is full. Syntax of autoFlush attribute available for page directive is written as: <%@ page autoFlush = "true|false" %> In the above example, page and autoFlush are keywords. True or false value can be set to autoFlush attribute, by default, its value is true . This means, the buffer will be flushed automatically when it is full. When the…
JSP Directive Tag and Scriptlet tag In this JSP tutorial, you will learn about two types of Directive tag namely Include and Tag Lib and also Scriptlet tag used in Java Server Pages along with syntax, usage, example and explanation for each of the tag. Include directive: Include directive is a type of directive tag. If a programmer wants to include contents of a file inside another, then the Include directive is used. The file included can be either static ( HTML file) or dynamic (i.e., another tag file). The include directive is used to include the contents of other…
JSP Architecture In this JSP tutorial, you will learn about JSP Architecture, page-centric approach, dispatcher approach and steps in execution of a JSP file. JSP is a high-end technology that helps developers insert java code in HTML pages by making use of special JSP tags. The JSP are HTML pages but do not automatically have .html as file extension. JSP files have .jsp as extension. The following steps takes place in execution of a JSP file. JSP files are compiled by JSP engine into a servlet. This step creates the .jsp file as a Java servlet source file. . Once…
Sell CC Fresh Visa,MasterCard,American Express,Discover All Country
JSP Implicit and Session Objects In this JPS tutorial, you will learn how to program using JSP, JSP expressions and Implicit Objects, JSP Session Object, methods of session object, getAttribute(String name), getAttributeNames and isNew(). JSP expressions: If a programmer wants to insert data into an HTML page, then this is achieved by making use of the JSP expression. General syntax: The general syntax of JSP expression is as follows: <%= expression %> The expression is enclosed between the tags <%= %> For example, if the programmer wishes to add 10 and 20 and display the result, then the JSP expression…
JSP Out Object In this JSP tutorial, you will learn about out object and its methods viz. clear, clearBuffer, flush, isAutoFlush, getBufferSize, getRemaining, newLine, print and println. out object denotes the Output stream in the context of page. The class or the interface name of the object out is jsp.JspWriter. The out object is written as: Javax.servlet.jsp.JspWriter The object that write to the JSP’s output stream is defined by the out object. Methods of out Object: There are numerous methods available for out Object, such as: clear clearBuffer flush isAutoFlush getBufferSize getRemaining newLine print println Detailed below is the usage…
JSP Application Object In this JSP tutorial, you will learn about application object, the methods available in application object, getAttribute(String name), getAttributeNames, setAttribute(String objName, Object object), removeAttribute(String objName), getMajorVersion(), getMinorVersion(), getServerInfo(), getInitParameter(String name), getInitParameterNames, getResourceAsStream(Path) and log(Message) Application Object is used to share the data with all application pages. Thus, all users share information of a given application using the Application object. The Application object is accessed by any JSP present in the application. The class or the interface name of the object application is ServletContext. The application object is written as: Javax.servlet.http.ServletContext Associated with the Application object are methods…
JSP Request Object In this JSP tutorial, you will learn about JSP request object, JSP request object methods, getParameter(String name), getParameterNames(), getParameterValues(String name), getQueryString(), getRequestURI(), getServletPath(), setAttribute(String,Object), removeAttribute(String) The request object in JSP is used to get the values that the client passes to the web server during an HTTP request. The request object is used to take the value from the client’s web browser and pass it to the server. This is performed using an HTTP request such as: headers, cookies or arguments. The class or the interface name of the object request is http.httpservletrequest. The object request is…
JSP Response Object In this JSP tutorial, you will learn about JSP Response object, Methods of response Object, setContentType(), addCookie(Cookie cookie), containsHeader(String name), setHeader(String name, String value), sendRedirect(String) and sendError(int status_code). The response object denotes the HTTP Response data. The result or the information of a request is denoted with this object. The response object handles the output of the client. This contrasts with the request object. The class or the interface name of the response object is http.HttpServletResponse. The response object is written: Javax.servlet.http.httpservletresponse. The response object is generally used by cookies. The response object is also used with…
Working with JSP Sessions In this JSP tutorial, you will learn about JSP session object methods, getCreationTime, getLastAccessedTime, getId, invalidate(), getMaxInactiveInterval, setMaxInactiveInterval(), removeAttribute(String name) and setAttribute(String, object). This section details the syntax, usage, example and explanation of more session object methods, such as: getCreationTime getLastAccessedTime getId invalidate() getMaxInactiveInterval setMaxInactiveInterval() removeAttribute(String name) setAttribute(String, object) getCreationTime: The getCreationTime method of session object is used to return the session created time. The returned time value would be in milliseconds, the time value is midnight January 1, 1970 GMT. General syntax of getCreationTime of session object is as follows: session.getCreationTime() The above method returns…