Learn Java
JavaScript Events Handling
JavaScript Events Handling In this JavaScript tutorial, you will learn about handling events in JavaScript, what is event handling in JavaScript? events in JavaScript, events associated with mouse – onmousemove, onclick, ondblclick, onmouseout, onmouseover, events associated with keyboard – onkeydown, onkeyup, onkeypress. onerror, onfocus, onblur, onsubmit, onload and onunload. What is Event Handling in JavaScript? This is a very vital concept of JavaScript because without events there would be no code. Event handling is the execution of code for the user’s reaction. In other words, when a user performs some action, the associated event fires or executes. For example, if…
JavaScript Object Oriented Features
JavaScript Object Oriented Features In this JavaScript tutorial you will learn about JavaScript Object Oriented Features, object type, object instantiation, using object properties, using object methods and achieving object instantiation. Object-oriented capabilities make any language or application powerful. This section outlines the object oriented features supported by JavaScript and how to use them in programming process. JavaScript is not a complete programming language but, rather, it is a scripting language. There are some object-oriented features that are not supported by JavaScript. JavaScript does not support the features of inheritance, information hiding, encapsulation and classification that are supported by other object-oriented…
JavaScript Event Object
JavaScript Event Object In this JavaScript tutorial you will learn about JavaScript event object, properties of event object, altKey, ctrlKey and shiftKey, button, integer value action representation, cancelBubble, clientX and clientY, fromElement and toElement, height and width. event Object: The event object is a browser object used to get information about a particular event specified. Using event object, users can access information about event happenings. The difference between event object and Event object is such that the latter gives constants that can be used to identify events, while the former is used to get information about events. Properties of event…
JavaScript Form Object
JavaScript Form Object In this JavaScript Tutorial you will learn about JavaScript form object, properties of form object, action – elements[], encoding, length, method, name, target, button, checkbox, FileUpload, hidden, password, radio, reset, select, submit, text, textarea and methods of form object. Form Object: form object is a Browser object of JavaScript used to access an HTML form. If a user wants to access all forms within a document then he can use the forms array. The form object is actually a property of document object that is uniquely created by the browser for each form present in a document….
JavaScript FileUpload Object
JavaScript FileUpload object In this JavaScript tutorial, you will learn about FileUpload object, FileUpload properties, accessKey, disabled, form, name, type, value, FileUpload methods – blur(), focus(), select(), handleEvent(), click() and event handlers – onblur, onchange and onfocus. FileUpload object: FileUpload represents an element that allows a user to specify a file to be uploaded or submitted along with the form. The FileUpload object is a Browser object and is used to access the above FileUpload element of a form. Thus, the FileUpload object allows the user to give any file as input. If a user wants to access the…
JSP Response Object
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…
JSP Request Object
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 Out Object
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
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 Implicit and Session Objects
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…
Sell CC Fresh Visa,MasterCard,American Express,Discover All Country
Sell CC Fresh Visa,MasterCard,American Express,Discover All Country
JSP Architecture
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…
JSP Page Directive
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
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 Introduction
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…
JSP Environment Setup
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
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
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…
JavaScript Alert Box
JavaScript Alert Box In this JavaScript tutorial, you will learn about JavaScript alert box along with code for placing the alert box when page is loaded. There are three types of popup boxes that can be created using JavaScript. Depending on the needs of user, the programmer can create any of these types of popup boxes using JavaScript. Three kinds of popup boxes created using JavaScript are: Alert Box Confirm Box Prompt Box Let us now learn how to create each of these popup boxes using JavaScript. Alert Box: This type of popup box is a dialog box used when…
JavaScript Confirm Box
JavaScript Confirm Box In the previous section of this tutorial JavaScript Alert Box, we discussed about alert boxes. In this section, you will learn about JavaScript confirm box and prompt box. Confirm Box: The confirm box is a box that pops up with both an OK and a Cancel button. The confirm box is used to verify acceptance from the user. If the user accepts, then the user presses the OK button and the confirm box returns with a true value. If the user rejects with the Cancel button, then the confirm box returns false value. General syntax for a…
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.AcceptReject Read More Privacy & Cookies Policy