JSP source code runs on the web server via JSP Servlet Engine. JSP files are HTML files with special Tags

Size: px
Start display at page:

Download "JSP source code runs on the web server via JSP Servlet Engine. JSP files are HTML files with special Tags"

Transcription

1 JSP : Java Server Pages It is a server side scripting language. JSP are normal HTML with Java code pieces embedded in them. A JSP compiler is used to generate a Servlet from the JSP page. JavaServer Pages enables the development of dynamic web sites and it is based on Java language. Introduction to Jsp To allow server side development JSP was developed by Sun Microsystem. Typical different clients connecting via the Internet to a Web server. e.g. a well popular Apache Web server is execute on Unix platform. C and Perl are languages which used on web servers to provide dynamic content. Most languages including Visualbasic,Delphi,C and Java could be used to write application that provided dynamic content using data from database requests. These were known as CGI server side applications. Microsoft developed ASP to allow HTML developers to easily provide dynamic content supported as standard by Microsoft free Web Server called Internet Information Server (IIS). A comparison of ASP and JSP will be given in section below. JSP source code runs on the web server via JSP Servlet Engine. JSP files are HTML files with special Tags containing Java source code that provide the dynamic content. Why we used JSP? JSP allow developer to quickly produce web sites and applications in an open and standard way and it is easy to learn. JSP is Java based an object-oriented language and offers a robust platform for web development Reason to use JSP: Reusability of Components by using Javabeans and EJB. Multi platform Platform-Independent So you are never depend on one vendor or platform. HTML and graphics displayed on the web browser are the presentation layer and the Java code (JSP) on the server is classed as the implementation. 1

2 Due to the separation of presentation and implementation,web designers work only on the presentation and Java developers concentrate on implementing the application. Comparison of JSP with ASP,ASP.NET and Servlet Comparison with ASP JSP and ASP provide fairly similar functionality. Both allow embedded code in an HTML page,session variables and database access and manipulation. ASP is mostly found on Microsoft platform but JSP can operate on any platform that conforms to the J2EE specification. JSP allow reusubility of component by using Javabeans and EJBs but ASP provides the use of COM / ActiveX controls. Comparison with ASP.NET ASP.NET is based on the Microsoft.NET framework. By using.net framework you developed application with different programming language like Visual Basic,C# and JavaScript. JSP and Java still has the advantage that it is supported on many different platforms and the Java community has many years of experience in designing and developing Enterprise quality scalable applications. ASP.NET is quite an improvement over the old ASP code. Comparison with Servlets A Servlet is a Java class that provides special server side service. It is tough to write HTML code in Servlets. In Servlets you need to have lots of println statements to create HTML. JSP pages are converted to Servlets so actually can do the same thing as old Java Servlets. JSP architecture JSP are built by SUN Microsystem servlet technology. JSP tag contain Java code and its file extension is.jsp The JSP engine parses the.jsp and create a Java servlet source file. Then it compile the source file into a class file,this is done first time only therefore JSP is probably slower when first time it is accessed.after this compiled servlet is executed and is therefore return faster. 2

3 Steps for JSP request: When the user goes to a JSP page web browser makes the request via internet. JSP request gets sent to the Web server. Web server recognises the.jsp file and passes the JSP file to the JSP Servlet Engine. If the JSP file has been called the first time,the JSP file is parsed,otherwise Servlet is instantiated. The next step is to generate a special Servlet from the JSP file. All the HTML required is converted to println statements. The Servlet source code is compiled into a class. The Servlet is instantiated,calling the init and service methods. HTML from the Servlet output is sent via the Internet. HTML results are displayed on the user's web browser 3

4 JSP environment To Set JSP environment For setting the JSP environment you should have a JDK(Java Development Kit). Setting up the JSP Download the latest JDK from the following URL: Install through the setup. One of the main problems of new Java developers have is setting the PATH and CLASSPATH. For Windows 95/98/ME you edit the AUTOEXEC.BAT file with the new PATH and CLASSPATH set the path and reboot your machine. For Windows 2000/XP you edit the environment variables. (Control Panel -> System -> Environment Variables). Read the installation instructions properly as it may change with future releases. What you do is add the location of java's bin folder to the Path variable and the classes you want in the CLASSPATH variable 4

5 To Download the JSP environment Download JSP environment from the web. The preferred option is to download the Tomcat. Tomcat is a free open source JSP and Servlet engine,developed by Apache. Instructions to download Tomcat are given below. For Tomcat setup To download Tomcat (current version 5.),go to the following URL: Unzip the file into a directory and set an environment variable TOMCAT_HOME to your main Tomcat directory: For example, set TOMCAT_HOME=c:\tomcat To start the server change to the tomcat\bin directory and type: startup Open a web browser and in the address box type: - this displays the example page. 5

6 Place any new JSP files in the "webapps" directory under your installed Tomcat directory. For example,to run "first.jsp" file,copy the file into the "webapps/root" directory and then open a browser to the address: This will show you the executed JSP file. First JSP JSP simply place Java inside the HTML pages You can change HTML page extension to ".jsp" instead of ".html"extension. How to create simple JSP page <html> <head> <title>my first JSP page </title> </head> <body> <%@ page language="java" %> <% out.println("hello World"); %> </body> </html> Type the above code into a text file. Name the file helloworld.jsp. Place it in correct directory on your JSP web server and call it via your browser. Notice that when page reload in the browser, it comes up with the current time. The character sequence <%= and %> enclose Java expression, which are evaluated at run time. Scriptlets JSP allow you to write block of Java code inside the JSP You do this by placing your Java code between <% and %> character (just like expressions, but without the = sign at the start of the sequence.) This block of code is known as a "scriptlet". By itself, a scriptlet doesn't contribute any HTML (as we will see down below.) A scriptlet contains Java code that is executed every time the JSP is invoked. Here is a modified version of our JSP, adding in a scriptlet. <HTML> <BODY> 6

7 <% // This is a scriptlet. Notice that the "date" // variable we declare here is available in the // embedded expression later on. System.out.println( "Evaluating date now" ); java.util.date date = new java.util.date(); %> Hello! The time is now <%= date %> </BODY> </HTML> When above example execute, you will notice the output from the "System.out.println" on the server log. This is a convenient way to do simple debugging. By itself a scriptlet does not generate HTML. If a scriptlet want to generate HTML, it can use a variable called "out". This variable does not need to be declared. It is already predefined for scriptlet, along with some other variables. The following example shows how the scriptlet can generate HTML output. <HTML> <BODY> <% // This scriptlet declares and initializes "date" System.out.println( "Evaluating date now" ); java.util.date date = new java.util.date(); %> Hello! The time is now <% // This scriptlet generates HTML output out.println( String.valueOf( date )); %> </BODY> </HTML> Here we generate HTML directly by printing to the "out" variable. 7

8 Request & Response Keyword A "request" is a server-side processing which refers to the transaction between a browser and the server. When someone enters a URL, the browser sends a "request" to the server for that URL, and shows returned data. As a part of this "request", various data is available, including the file the browser wants from the server, and if the request is coming from pressing a SUBMIT button, the information the user has entered in the form fields. The JSP "request" variable is used to obtain information from the request as sent by the browser. For instance, you can find out the name of the client's host (if available, otherwise the IP address will be returned.) Let us modify the code as shown: <HTML> <BODY> <% // This scriptlet declares and initializes "date" System.out.println( "Evaluating date now" ); java.util.date date = new java.util.date(); %> Hello! The time is now <% out.println( date ); out.println( "<BR>Your machine's address is " ); out.println( request.getremotehost()); %> </BODY> </HTML> A similar variable is "response". This can be used to affect the response being sent to the browser. For instance, you can call response.sendredirect( anotherurl ); to send a response to the browser that it should load a different URL. This response will actualy goes all the way to the browser. The browser will then send a different request, to "anotherurl". Using JSP tags Declaration tag Expression tag Directive tag Scriptlet tag 8

9 Action tag Declaration tag Declaration tag ( <%! %> ) It allows the developer to declare variables or methods. Start with <%! and End with %> Code placed inside this tag must end in a semicolon ( ; ). Declarations do not generate output so are used with JSP expressions or scriptlets. For Example, <%! private int counter = 0 ; private String get Account ( int accountno) ; %> Expression tag Expression tag ( <%= %>) Expression tag allow the developer to embed any Java expression and is short for out.println(). A semicolon ( ; ) does not appear at the end of the code inside the tag. e.g.to show the current date and time. Date : <%= new java.util.date() %> Directive tag Direcitve tag ( <%@ directive...>) A JSP directive gives special information about the page to JSP Engine. Three main types of directives are: 1) page - processing information for this page. 2) Include - files to be included. 3) Tag library - tag library to be used in this page. 9

10 Directives do not produce any visible output when the page is requested but change the way the JSP Engine processes the page. e.g.,you can make session data unavailable to a page by setting a page directive (session) to false. 1.Page Directive This directive has 11 optional attributes that provide the JSP Engine with special processing information. The 11 different attributes with a brief description is decribe in table given below: Language Extends import session buffer autoflush isthreadsafe info Which language the file uses. Superclass used by the JSP engine for the translated Servlet. Import all the classes in a java package into the current JSP page. This allows the JSP page to use other java classes. oes the page make use of sessions. By default all JSP pages have session data available. There are performance benefits to switching session to false. Controls the use of buffered output for a JSP page. Default is 8kb Flush output buffer when full. Can the generated Servlet deal with multiple requests? If true a new thread is started so requests are handled simultaneously. Developer uses info attribute to add information/document for a page. Typically used to add author,version,copyright and date info. <%@ page language = "java" %> <%@ page extends = "com.taglib... %> <%@ page import = "java.util.*" %> Default is set to true. <%@ page buffer = "none" %> <%@ page autoflush = "true" %> <%@ page info = "visualbuilder.com test page,copyright " %> errorpage Different page to deal with errors. Must be URL to error page. <%@ page errorpage = "/error/error.jsp" %> IsErrorPage This flag is set to true to make a JSP page a special Error Page. This page has access to the implicit object exception (see later). 10

11 contenttype Set the mime type and character set of the JSP. 2. Include directive It allows a JSP developer to include contents of a file inside another. Typically include files are used for navigation,headers,tables and footers that are common to multiple pages. Two examples of using include files: This includes the html from privacy.html found in the include directory into the current jsp page. <%@ include file = "include/privacy.html" %> or to include a naviagation menu (jsp file) found in the current directory <%@ include file = "navigation.jsp" %> 3. Tag Lib directive A tag lib is a collection of custom tag that can be used by the page <%@ taglib uri = "tag library URI" prefix = "tag Prefix" %> Custom tag were introduced in JSP 1.1 and allow JSP developer to hide complex server side code from web designers Scriptlet tag Scriptlet tag ( <%... %> ) Between <% and %> tags,any valid Java code is called a Scriptlet. This code can access any variable or bean declared. For example,to print a variable. <% String username = "visualbuilder" ; out.println ( username ) ; %> Action tag There are three main roles of action tag : 1) It enable the use of server side Javabeans 11

12 2) It transfer control between pages 3) Browser independent support for applets. Javabeans A Javabeans is a special type of class that has a number of methods. The JSP page can call these method so can leave most of the code in these Javabeans. For example,if you wanted to make a feedback form that automatically sent out an . By having a JSP page with a form,when the visitor presses the submit button this send the details to a Javabean that sends out the . This way there would be no code in the JSP page dealing with sending s (JavaMail API) and your Javabeans could be used in another page(promotingreuse). To use a Javabeans in a JSP page use the following syntax: <jsp : usebean id = "..." scope = "application" class = "com..." /> The following is a list of Javabean scopes: page - valid until page completes. request - bean instance lasts for the client request session - bean lasts for the client session. application - bean instance created and lasts until application ends. Creating your second JSP page JSP Sessions Creating your second JSP page The different tags which we have learnt are using here. This example will declare two variables; one string used to stored the name of a website and an integer called counter that displays the number of times the page has been accessed. There is also a private method declared to increment the counter. The website name and counter value are displayed. <HTML> <HEAD> <!-- Example2 --> <TITLE> JSP loop</title> </HEAD> <BODY> 12

13 <font face=verdana color=darkblue> JSP loop <BR> <BR> <%! public String writethis(int x) { String mytext=""; for (int i = 1; i < x; i ) mytext = mytext "<font size=" i " color=darkred face=verdana>visualbuilder JSP Tutorial</font><br>" ; return mytext; } %> This is a loop example from the <br> <%= writethis(8) %> </font> </BODY> </HTML> JSP Sessions On any typical web site, a visitor might visit several pages and perform several interactions. If you are programming the site, it is very helpful to be able to associate some data with each visitor. For this purpose, "session"s can be used in JSP. A session is an object associated with a visitor. Data can be put in the session and retrieved from it, much like a Hashtable. A different set of data is kept for each visitor to the site. Here is a set of pages that put a user's name in the session, and display it elsewhere. Try out installing and using these. First we have a form, let us call it GetName.html <HTML> <BODY> <FORM METHOD=POST ACTION="SaveName.jsp"> What's your name? <INPUT TYPE=TEXT NAME=username SIZE=20> 13

14 <P><INPUT TYPE=SUBMIT> </FORM> </BODY> </HTML> The target of the form is "SaveName.jsp", which saves the user's name in the session. Note the variable "session". This is another variable that is normally made available in JSPs, just like out and request variables. (In directive, you can indicate that you do not need sessions, in which case the "session" variable will not be made available.) <% String name = request.getparameter( "username" ); session.setattribute( "thename", name ); %> <HTML> <BODY> <A HREF="NextPage.jsp">Continue</A> </BODY> </HTML> The SaveName.jsp saves the user's name in the session, and puts a link to another page, NextPage.jsp. NextPage.jsp shows how to retrieve the saved name. <HTML> <BODY> Hello, <%= session.getattribute( "thename" ) %> </BODY> </HTML> If you bring up two different browsers (not different windows of the same browser), or run two browsers from two different machines, you can put one name in one browser and another name in another browser, and both names will be kept track of. 14

15 The session is kept around until a timeout period. Then it is assumed the user is no longer visiting the site, and the session is discarded. Implicit Objects Implicit objects are a set of Java objects that the JSP Container makes available to developers in each page. These objects may be accessed as built-in variables via scripting elements and can also be accessed programmatically by JavaBeans and Servlets. Overview Implicit objects will be automatically instantiated under specific variable names. Furthermore,each object must adhere to a specific Java class or interface definition. We have already met one of these objects already - the out object in which we used the println() method to add text to the output stream. Object Class or Interface Description page jsp.httpjsppage Page's servlet instance config ServletConfig Servlet configuration information pagecontext jsp.pagecontext Provides access to all the namespaces associated with a JSP page and access to several page attributes request response http.httpservletrequest Data included with the HTTP Request http.httpservletresponse HTTP Response data, e.g. cookies out jsp.jspwriter Output stream for page context session http.httpsession User specific session data application ServletContext Data shared by all application pages 15

16 The first three are rarely used. The application, session and request implicit objects have the additional ability to hold arbitrary values. By setting and getting attribute values these objects are able to share information between several JSP pages. JSP Create Form Beans and Form processing Forms are a very common method of interactions in web sites. JSP makes easy forms processing. To Create Form Here we show how to create and process an html form. Code below you save as a file name myform.jsp Go to myform.jsp in your browser and open it. It won't do anything yet. <html> <head> <!-- Example4 --> <title>visualbuilder.com</title> </head> <body> <form action="myformconfirm.jsp" method="post"> Enter in a website name:<br> <input type="text" name="website"><br> <input type="submit" name="submit"> </form> </body> </html> Processing a Form Code written here which process the html form your just created. Copy the code below and place in a file named: myformconfirm.jsp Go to myform.jsp Fill in some details and submit the form You should see the results of your submission <html> <head> <!-- Example4 --> 16

17 <title>visualbuilder.com</title> </head> <body> <font size=3> Your info has been received: <br><br> <% String sname = request.getparameter("website"); out.print(sname); %> </font> </body> </html> Beans and Form Processing The standard way of handling JSP forms is to define a "bean". This is not a full Java bean. You just need to define a class that has a field corresponding to each field in the form. The class fields must have "setters" that match the names of the form fields. For instance, let us modify GetName.html to also collect address and age. The new version of GetName.html is <HTML> <BODY> <FORM METHOD=POST ACTION="SaveName.jsp"> What's your name? <INPUT TYPE=TEXT NAME=username SIZE=20><BR> What's your address? <INPUT TYPE=TEXT NAME= SIZE=20><BR> What's your age? <INPUT TYPE=TEXT NAME=age SIZE=4> <P><INPUT TYPE=SUBMIT> </FORM> </BODY> </HTML> To collect data, we define a Java class with fields "username", " " and "age" and we provide setter methods "setusername", "set " and "setage", as shown. A "setter" method is a method that 17

18 starts with "set" followed by the name of the field. The first character of the field name is upper-cased. So if the field is " ", its "setter" method will be "set ". Getter methods are defined similarly, with "get" instead of "set". Note that the setters & getters method must be public. package user; public class UserData { String username; String ; int age; public void setusername( String value ) { username = value; } public void set ( String value ) { = value; } public void setage( int value ) { age = value; } public String getusername() { return username; } public String get () { return ; } public int getage() { return age; } } The method names must be exactly as shown below. Once you have defined the class, compile it and make sure it is available in the web-server's classpath. The server may also define special folders where you can place bean classes, e.g. with Blazix you can place them in the "classes" folder. If you have to change the classpath, the web-server would need to be stopped and restarted if it is already running. Note that we are using the package name user, therefore the file UserData.class must be placed in a folder named user under the classpath entry. Now let us change "SaveName.jsp" to use a bean to collect the data. <jsp:usebean id="user" class="user.userdata" scope="session"/> <jsp:setproperty name="user" property="*"/> 18

19 <HTML> <BODY> <A HREF="NextPage.jsp">Continue</A> </BODY> </HTML> Now we have to add the jsp:usebean tag and the jsp:setproperty tag! The usebean tag will look for an instance of the "user.userdata" in the session. If the instance is already there, it will update the old instance. Otherwise,it will create a new instance of user.userdata (the instance of the user.userdata is called a bean), and put it in the session. The setproperty tag will automatically collect the input data, match names against the bean method names, and place the data in the bean! Let us modify NextPage.jsp to retrieve the data from bean.. <jsp:usebean id="user" class="user.userdata" scope="session"/> <HTML> <BODY> You entered<br> Name: <%= user.getusername() %><BR> <%= user.get () %><BR> Age: <%= user.getage() %><BR> </BODY> </HTML> Notice that the same usebean tags is repeated. The bean is available as the variable named "user" of class "user.userdata". The data entered by the user is all collected in the bean. We do not actually need the "SaveName.jsp", the target of GetName.html could have been NextPage.jsp, and the data would still be available the same way as long as we added a jsp:setproperty tag. But in the next tutorial, we will actually use SaveName.jsp as an error handler that automatically forwards the request to NextPage.jsp, or asks the user to correct the erroneous data. JSP Summary In our tutorial with JSP we've gotten an idea of what JSP is good for, and how it's used. We've seen that JSP gives us the power of Java on the Web server, which is an incomparable asset. 19

20 We have also taken a look at where JSP came from, and how it developed. We've seen that as the Web has evolved, Java has been a part of the picture first with applets, then servlets, and now JSP. Applets were nice, but limited; servlets are very powerful but complex. JSP gives us the best of both worlds: They're both very powerful (they're converted to servlets before they're run) and easy to write. You've also installed the Tomcat server and gotten it running, and built the development environment (Java, Tomcat, browser, and an editor) you'll be using in the coming days. We've also developed and run our first JSP. Instead of having to write everything in Java, we were able to simply insert the Java we wanted into an HTML page. That's the whole genius of JSP you use an HTML backbone and just add the Java you need. As we've also seen, JSP offers a whole set of built-in objects, which means we can get away with even less Java because we don't have to create those objects ourselves. We also took a look at the JSP syntax in overview here some of which might not have made a great deal of sense yet. (But don't worry, that's why this is Day 1 it's all coming up in depth in the next days.) And that's it we've started our in-depth guided tour of JSP, and built the foundation we'll need in the coming days. Tomorrow, you'll see more details, such as how to work with data and operators in JSP, and you'll start writing some real code. 20

JSP (Java Server Page)

JSP (Java Server Page) JSP (Java Server Page) http://www.jsptut.com/ http://www.jpgtutorials.com/introduction-to-javaserver-pages-jsp Lab JSP JSP simply puts Java inside HTML pages. Hello!

More information

Principles and Techniques of DBMS 6 JSP & Servlet

Principles and Techniques of DBMS 6 JSP & Servlet Principles and Techniques of DBMS 6 JSP & Servlet Haopeng Chen REliable, INtelligent and Scalable Systems Group (REINS) Shanghai Jiao Tong University Shanghai, China http://reins.se.sjtu.edu.cn/~chenhp

More information

Unit 5 JSP (Java Server Pages)

Unit 5 JSP (Java Server Pages) Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic, platform-independent method for building Web-based applications. It focuses more on presentation logic

More information

COMP9321 Web Application Engineering

COMP9321 Web Application Engineering COMP9321 Web Application Engineering Java Server Pages (JSP) Dr. Basem Suleiman Service Oriented Computing Group, CSE, UNSW Australia Semester 1, 2016, Week 3 http://webapps.cse.unsw.edu.au/webcms2/course/index.php?cid=2442

More information

COMP9321 Web Application Engineering

COMP9321 Web Application Engineering COMP9321 Web Application Engineering Semester 2, 2017 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 3 http://webapps.cse.unsw.edu.au/webcms2/course/index.php?cid=2465 1 Review:

More information

COMP9321 Web Application Engineering

COMP9321 Web Application Engineering COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 3 http://webapps.cse.unsw.edu.au/webcms2/course/index.php?cid=2411 1 Review:

More information

PES INSTITUTE OF TECHNOLOGY, SOUTH CAMPUS DEPARTMENT OF MCA INTERNAL TEST (SCHEME AND SOLUTION) II

PES INSTITUTE OF TECHNOLOGY, SOUTH CAMPUS DEPARTMENT OF MCA INTERNAL TEST (SCHEME AND SOLUTION) II PES INSTITUTE OF TECHNOLOGY, SOUTH CAMPUS DEPARTMENT OF MCA INTERNAL TEST (SCHEME AND SOLUTION) II Subject Name: Advanced JAVA programming Subject Code: 13MCA42 Time: 11:30-01:00PM Max.Marks: 50M ----------------------------------------------------------------------------------------------------------------

More information

JavaServer Pages. What is JavaServer Pages?

JavaServer Pages. What is JavaServer Pages? JavaServer Pages SWE 642, Fall 2008 Nick Duan What is JavaServer Pages? JSP is a server-side scripting language in Java for constructing dynamic web pages based on Java Servlet, specifically it contains

More information

PSD1B Advance Java Programming Unit : I-V. PSD1B- Advance Java Programming

PSD1B Advance Java Programming Unit : I-V. PSD1B- Advance Java Programming PSD1B Advance Java Programming Unit : I-V PSD1B- Advance Java Programming 1 UNIT I - SYLLABUS Servlets Client Vs Server Types of Servlets Life Cycle of Servlets Architecture Session Tracking Cookies JDBC

More information

JavaServer Pages. Juan Cruz Kevin Hessels Ian Moon

JavaServer Pages. Juan Cruz Kevin Hessels Ian Moon Page 1 of 14 JavaServer Pages Table of Contents 1. Introduction What is JSP? Alternative Solutions Why Use JSP? 2. JSP Process Request Compilation Example 3. Object Instantiation and Scope Scope Synchronization

More information

A JavaBean is a class file that stores Java code for a JSP

A JavaBean is a class file that stores Java code for a JSP CREATE A JAVABEAN A JavaBean is a class file that stores Java code for a JSP page. Although you can use a scriptlet to place Java code directly into a JSP page, it is considered better programming practice

More information

Java Server Page (JSP)

Java Server Page (JSP) Java Server Page (JSP) CS 4640 Programming Languages for Web Applications [Based in part on SWE432 and SWE632 materials by Jeff Offutt] [Robert W. Sebesta, Programming the World Wide Web] 1 Web Applications

More information

Introduction to Java Server Pages. Enabling Technologies - Plug-ins Scripted Pages

Introduction to Java Server Pages. Enabling Technologies - Plug-ins Scripted Pages Introduction to Java Server Pages Jeff Offutt & Ye Wu http://www.ise.gmu.edu/~offutt/ SWE 432 Design and Implementation of Software for the Web From servlets lecture. Enabling Technologies - Plug-ins Scripted

More information

JSP - SYNTAX. Any text, HTML tags, or JSP elements you write must be outside the scriptlet. Following is the simple and first example for JSP:

JSP - SYNTAX. Any text, HTML tags, or JSP elements you write must be outside the scriptlet. Following is the simple and first example for JSP: http://www.tutorialspoint.com/jsp/jsp_syntax.htm JSP - SYNTAX Copyright tutorialspoint.com This tutorial will give basic idea on simple syntax ie. elements involved with JSP development: The Scriptlet:

More information

A Gentle Introduction to Java Server Pages

A Gentle Introduction to Java Server Pages A Gentle Introduction to Java Server Pages John Selmys Seneca College July 2010 What is JSP? Tool for developing dynamic web pages developed by SUN (now Oracle) High-level abstraction of Java Servlets

More information

CS506 Web Design & Development Final Term Solved MCQs with Reference

CS506 Web Design & Development Final Term Solved MCQs with Reference with Reference I am student in MCS (Virtual University of Pakistan). All the MCQs are solved by me. I followed the Moaaz pattern in Writing and Layout this document. Because many students are familiar

More information

Java E-Commerce Martin Cooke,

Java E-Commerce Martin Cooke, Java E-Commerce Martin Cooke, 2002 1 Java technologies for presentation: JSP Today s lecture in the presentation tier Java Server Pages Tomcat examples Presentation How the web tier interacts with the

More information

directive attribute1= value1 attribute2= value2... attributen= valuen %>

directive attribute1= value1 attribute2= value2... attributen= valuen %> JSP Standard Syntax Besides HTML tag elements, JSP provides four basic categories of constructors (markup tags): directives, scripting elements, standard actions, and comments. You can author a JSP page

More information

Advanced Java Programming

Advanced Java Programming Advanced Java Programming Length: 4 days Description: This course presents several advanced topics of the Java programming language, including Servlets, Object Serialization and Enterprise JavaBeans. In

More information

Scope and State Handling in JSP

Scope and State Handling in JSP Scope and State Handling in JSP CS 4640 Programming Languages for Web Applications [Based in part on SWE432 and SWE632 materials by Jeff Offutt] [Robert W. Sebesta, Programming the World Wide Web] 1 Session

More information

112. Introduction to JSP

112. Introduction to JSP 112. Introduction to JSP Version 2.0.2 This two-day module introduces JavaServer Pages, or JSP, which is the standard means of authoring dynamic content for Web applications under the Java Enterprise platform.

More information

About the Authors. Who Should Read This Book. How This Book Is Organized

About the Authors. Who Should Read This Book. How This Book Is Organized Acknowledgments p. XXIII About the Authors p. xxiv Introduction p. XXV Who Should Read This Book p. xxvii Volume 2 p. xxvii Distinctive Features p. xxviii How This Book Is Organized p. xxx Conventions

More information

a. Jdbc:ids://localhost:12/conn?dsn=dbsysdsn 21. What is the Type IV Driver URL? a. 22.

a. Jdbc:ids://localhost:12/conn?dsn=dbsysdsn 21. What is the Type IV Driver URL? a. 22. Answers 1. What is the super interface to all the JDBC Drivers, specify their fully qualified name? a. Java.sql.Driver i. JDBC-ODBC Driver ii. Java-Native API Driver iii. All Java Net Driver iv. Java Native

More information

Advantage of JSP over Servlet

Advantage of JSP over Servlet JSP technology is used to create web application just like Servlet technology. It can be thought of as an extension to servlet because it provides more functionality than servlet such as expression language,

More information

112-WL. Introduction to JSP with WebLogic

112-WL. Introduction to JSP with WebLogic Version 10.3.0 This two-day module introduces JavaServer Pages, or JSP, which is the standard means of authoring dynamic content for Web applications under the Java Enterprise platform. The module begins

More information

Ch04 JavaServer Pages (JSP)

Ch04 JavaServer Pages (JSP) Ch04 JavaServer Pages (JSP) Introduce concepts of JSP Web components Compare JSP with Servlets Discuss JSP syntax, EL (expression language) Discuss the integrations with JSP Discuss the Standard Tag Library,

More information

CE212 Web Application Programming Part 3

CE212 Web Application Programming Part 3 CE212 Web Application Programming Part 3 30/01/2018 CE212 Part 4 1 Servlets 1 A servlet is a Java program running in a server engine containing methods that respond to requests from browsers by generating

More information

Unit 4 Java Server Pages

Unit 4 Java Server Pages Q1. List and Explain various stages of JSP life cycle. Briefly give the function of each phase. Ans. 1. A JSP life cycle can be defined as the entire process from its creation till the destruction. 2.

More information

Fast Track to Java EE 5 with Servlets, JSP & JDBC

Fast Track to Java EE 5 with Servlets, JSP & JDBC Duration: 5 days Description Java Enterprise Edition (Java EE 5) is a powerful platform for building web applications. The Java EE platform offers all the advantages of developing in Java plus a comprehensive

More information

Java Server Pages, JSP

Java Server Pages, JSP Java Server Pages, JSP Java server pages is a technology for developing web pages that include dynamic content. A JSP page can change its content based on variable items, identity of the user, the browsers

More information

Java.. servlets and. murach's TRAINING & REFERENCE 2ND EDITION. Joel Murach Andrea Steelman. IlB MIKE MURACH & ASSOCIATES, INC.

Java.. servlets and. murach's TRAINING & REFERENCE 2ND EDITION. Joel Murach Andrea Steelman. IlB MIKE MURACH & ASSOCIATES, INC. TRAINING & REFERENCE murach's Java.. servlets and 2ND EDITION Joel Murach Andrea Steelman IlB MIKE MURACH & ASSOCIATES, INC. P 1-800-221-5528 (559) 440-9071 Fax: (559) 440-0963 murachbooks@murach.com www.murach.com

More information

First Simple Interactive JSP example

First Simple Interactive JSP example Let s look at our first simple interactive JSP example named hellojsp.jsp. In his Hello User example, the HTML page takes a user name from a HTML form and sends a request to a JSP page, and JSP page generates

More information

JSP MOCK TEST JSP MOCK TEST III

JSP MOCK TEST JSP MOCK TEST III http://www.tutorialspoint.com JSP MOCK TEST Copyright tutorialspoint.com This section presents you various set of Mock Tests related to JSP Framework. You can download these sample mock tests at your local

More information

Introduction. This course Software Architecture with Java will discuss the following topics:

Introduction. This course Software Architecture with Java will discuss the following topics: Introduction This course Software Architecture with Java will discuss the following topics: Java servlets Java Server Pages (JSP s) Java Beans JDBC, connections to RDBMS and SQL XML and XML translations

More information

UNIT -5. Java Server Page

UNIT -5. Java Server Page UNIT -5 Java Server Page INDEX Introduction Life cycle of JSP Relation of applet and servlet with JSP JSP Scripting Elements Difference between JSP and Servlet Simple JSP program List of Questions Few

More information

Java Server Pages JSP

Java Server Pages JSP Java Server Pages JSP Agenda Introduction JSP Architecture Scripting Elements Directives Implicit Objects 2 A way to create dynamic web pages Introduction Separates the graphical design from the dynamic

More information

Introduction to JSP and Servlets Training 5-days

Introduction to JSP and Servlets Training 5-days QWERTYUIOP{ Introduction to JSP and Servlets Training 5-days Introduction to JSP and Servlets training course develops skills in JavaServer Pages, or JSP, which is the standard means of authoring dynamic

More information

JSP. Basic Elements. For a Tutorial, see:

JSP. Basic Elements. For a Tutorial, see: JSP Basic Elements For a Tutorial, see: http://java.sun.com/j2ee/1.4/docs/tutorial/doc/jspintro.html Simple.jsp JSP Lifecycle Server Web

More information

Trabalhando com JavaServer Pages (JSP)

Trabalhando com JavaServer Pages (JSP) Trabalhando com JavaServer Pages (JSP) Sumário 7.2.1 Introdução 7.2.2 JavaServer Pages Overview 7.2.3 First JavaServer Page Example 7.2. Implicit Objects 7.2.5 Scripting 7.2.5.1 Scripting Components 7.2.5.2

More information

JavaServer Pages (JSP)

JavaServer Pages (JSP) JavaServer Pages (JSP) The Context The Presentation Layer of a Web App the graphical (web) user interface frequent design changes usually, dynamically generated HTML pages Should we use servlets? No difficult

More information

Basic Principles of JSPs

Basic Principles of JSPs 5 IN THIS CHAPTER What Is a JSP? Deploying a JSP in Tomcat Elements of a JSP Page Chapter 4, Basic Principles of Servlets, introduced you to simple Web applications using servlets. Although very useful

More information

Sun Sun Certified Web Component Developer for J2EE 5 Version 4.0

Sun Sun Certified Web Component Developer for J2EE 5 Version 4.0 Sun Sun Certified Web Component Developer for J2EE 5 Version 4.0 QUESTION NO: 1 To take advantage of the capabilities of modern browsers that use web standards, such as XHTML and CSS, your web application

More information

01KPS BF Progettazione di applicazioni web

01KPS BF Progettazione di applicazioni web 01KPS BF Progettazione di applicazioni web Introduction to Java Server Pages Fulvio Corno, Alessio Bosca Dipartimento di Automatica e Informatica Politecnico di Torino PAW - JSP intro 1 Introduction to

More information

Introduction. Literature: Steelman & Murach, Murach s Java Servlets and JSP. Mike Murach & Associates Inc, 2003

Introduction. Literature: Steelman & Murach, Murach s Java Servlets and JSP. Mike Murach & Associates Inc, 2003 Introduction This course Software Architecture with Java will discuss the following topics: Java servlets Java Server Pages (JSP s) Java Beans JDBC, connections to RDBMS and SQL XML and XML translations

More information

Y ou must have access to a JSP-compatible Web server

Y ou must have access to a JSP-compatible Web server JSP-COMPATIBLE WEB SERVERS Y ou must have access to a JSP-compatible Web server before beginning to develop JavaServer Pages code. There are several JSP-compatible Web servers to choose from and most of

More information

Java Server Pages. JSP Part II

Java Server Pages. JSP Part II Java Server Pages JSP Part II Agenda Actions Beans JSP & JDBC MVC 2 Components Scripting Elements Directives Implicit Objects Actions 3 Actions Actions are XML-syntax tags used to control the servlet engine

More information

Fast Track to Java EE

Fast Track to Java EE Java Enterprise Edition is a powerful platform for building web applications. This platform offers all the advantages of developing in Java plus a comprehensive suite of server-side technologies. This

More information

FINALTERM EXAMINATION Spring 2009 CS506- Web Design and Development Solved by Tahseen Anwar

FINALTERM EXAMINATION Spring 2009 CS506- Web Design and Development Solved by Tahseen Anwar FINALTERM EXAMINATION Spring 2009 CS506- Web Design and Development Solved by Tahseen Anwar www.vuhelp.pk Solved MCQs with reference. inshallah you will found it 100% correct solution. Time: 120 min Marks:

More information

Module 5 Developing with JavaServer Pages Technology

Module 5 Developing with JavaServer Pages Technology Module 5 Developing with JavaServer Pages Technology Objectives Evaluate the role of JSP technology as a presentation Mechanism Author JSP pages Process data received from servlets in a JSP page Describe

More information

JSP - ACTIONS. There is only one syntax for the Action element, as it conforms to the XML standard:

JSP - ACTIONS. There is only one syntax for the Action element, as it conforms to the XML standard: http://www.tutorialspoint.com/jsp/jsp_actions.htm JSP - ACTIONS Copyright tutorialspoint.com JSP actions use constructs in XML syntax to control the behavior of the servlet engine. You can dynamically

More information

One application has servlet context(s).

One application has servlet context(s). FINALTERM EXAMINATION Spring 2010 CS506- Web Design and Development DSN stands for. Domain System Name Data Source Name Database System Name Database Simple Name One application has servlet context(s).

More information

COMP201 Java Programming

COMP201 Java Programming COMP201 Java Programming Part III: Advanced Features Topic 16: JavaServer Pages (JSP) Servlets and JavaServer Pages (JSP) 1.0: A Tutorial http://www.apl.jhu.edu/~hall/java/servlet-tutorial/servlet-tutorial-intro.html

More information

Trabalhando com JavaServer Pages (JSP)

Trabalhando com JavaServer Pages (JSP) Trabalhando com JavaServer Pages (JSP) Sumário 7.2.1 Introdução 7.2.2 JavaServer Pages Overview 7.2.3 First JavaServer Page Example 7.2.4 Implicit Objects 7.2.5 Scripting 7.2.5.1 Scripting Components 7.2.5.2

More information

Experiment No: Group B_2

Experiment No: Group B_2 Experiment No: Group B_2 R (2) N (5) Oral (3) Total (10) Dated Sign Problem Definition: A Web application for Concurrent implementation of ODD-EVEN SORT is to be designed using Real time Object Oriented

More information

Anno Accademico Laboratorio di Tecnologie Web. Sviluppo di applicazioni web JSP

Anno Accademico Laboratorio di Tecnologie Web. Sviluppo di applicazioni web JSP Universita degli Studi di Bologna Facolta di Ingegneria Anno Accademico 2007-2008 Laboratorio di Tecnologie Web Sviluppo di applicazioni web JSP http://www lia.deis.unibo.it/courses/tecnologieweb0708/

More information

S imilar to JavaBeans, custom tags provide a way for

S imilar to JavaBeans, custom tags provide a way for CREATE THE TAG HANDLER S imilar to JavaBeans, custom tags provide a way for you to easily work with complex Java code in your JSP pages. You can create your own custom tags to suit your needs. Using custom

More information

GUJARAT TECHNOLOGICAL UNIVERSITY

GUJARAT TECHNOLOGICAL UNIVERSITY 1. Learning Objectives: To learn and work with the web components of Java EE. i.e. the Servlet specification. Student will be able to learn MVC architecture and develop dynamic web application using Java

More information

Session 21. Expression Languages. Reading. Java EE 7 Chapter 9 in the Tutorial. Session 21 Expression Languages 11/7/ Robert Kelly,

Session 21. Expression Languages. Reading. Java EE 7 Chapter 9 in the Tutorial. Session 21 Expression Languages 11/7/ Robert Kelly, Session 21 Expression Languages 1 Reading Java EE 7 Chapter 9 in the Tutorial 2 11/7/2018 1 Lecture Objectives Understand how Expression Languages can simplify the integration of data with a view Know

More information

Client Side JavaScript and AJAX

Client Side JavaScript and AJAX Client Side JavaScript and AJAX Client side javascript is JavaScript that runs in the browsers of people using your site. So far all the JavaScript code we've written runs on our node.js server. This is

More information

JAVA 2 ENTERPRISE EDITION (J2EE)

JAVA 2 ENTERPRISE EDITION (J2EE) COURSE TITLE DETAILED SYLLABUS SR.NO JAVA 2 ENTERPRISE EDITION (J2EE) ADVANCE JAVA NAME OF CHAPTERS & DETAILS HOURS ALLOTTED SECTION (A) BASIC OF J2EE 1 FILE HANDLING Stream Reading and Creating file FileOutputStream,

More information

Java 2 Platform, Enterprise Edition: Platform and Component Specifications

Java 2 Platform, Enterprise Edition: Platform and Component Specifications Table of Contents Java 2 Platform, Enterprise Edition: Platform and Component Specifications By Bill Shannon, Mark Hapner, Vlada Matena, James Davidson, Eduardo Pelegri-Llopart, Larry Cable, Enterprise

More information

This course is intended for Java programmers who wish to write programs using many of the advanced Java features.

This course is intended for Java programmers who wish to write programs using many of the advanced Java features. COURSE DESCRIPTION: Advanced Java is a comprehensive study of many advanced Java topics. These include assertions, collection classes, searching and sorting, regular expressions, logging, bit manipulation,

More information

Session 20 Data Sharing Session 20 Data Sharing & Cookies

Session 20 Data Sharing Session 20 Data Sharing & Cookies Session 20 Data Sharing & Cookies 1 Reading Shared scopes Java EE 7 Tutorial Section 17.3 Reference http state management www.ietf.org/rfc/rfc2965.txt Cookies Reading & Reference en.wikipedia.org/wiki/http_cookie

More information

Database Systems Lab. 11. JSP I 충남대학교컴퓨터공학과 데이타베이스시스템연구실

Database Systems Lab. 11. JSP I 충남대학교컴퓨터공학과 데이타베이스시스템연구실 데이타베이스시스템연구실 Database Systems Lab. 11. JSP I 충남대학교컴퓨터공학과 데이타베이스시스템연구실 Overview http://www.tutorialspoint.com/jsp/index.htm What is JavaServer Pages? JavaServer Pages (JSP) is a server-side programming

More information

HttpServlet ( Class ) -- we will extend this class to handle GET / PUT HTTP requests

HttpServlet ( Class ) -- we will extend this class to handle GET / PUT HTTP requests What is the servlet? Servlet is a script, which resides and executes on server side, to create dynamic HTML. In servlet programming we will use java language. A servlet can handle multiple requests concurrently.

More information

web.xml Deployment Descriptor Elements

web.xml Deployment Descriptor Elements APPENDIX A web.xml Deployment Descriptor s The following sections describe the deployment descriptor elements defined in the web.xml schema under the root element . With Java EE annotations, the

More information

Definitions and some examples JSP. Java Server Pages. By Hamid Mosavi-Porasl

Definitions and some examples JSP. Java Server Pages. By Hamid Mosavi-Porasl Definitions and some examples JSP Java Server Pages By Hamid Mosavi-Porasl 1 JSP compared to servlet... 3 2 Steps required for a JSP request... 3 3 Simple JSP Page... 3 4 There are five main tags in JSP...

More information

Java Servlets. Preparing your System

Java Servlets. Preparing your System Java Servlets Preparing to develop servlets Writing and running an Hello World servlet Servlet Life Cycle Methods The Servlet API Loading and Testing Servlets Preparing your System Locate the file jakarta-tomcat-3.3a.zip

More information

CSc31800: Internet Programming, CS-CCNY, Spring 2004 Jinzhong Niu May 9, JSPs 1

CSc31800: Internet Programming, CS-CCNY, Spring 2004 Jinzhong Niu May 9, JSPs 1 CSc31800: Internet Programming, CS-CCNY, Spring 2004 Jinzhong Niu May 9, 2004 JSPs 1 As we know, servlets, replacing the traditional CGI technology, can do computation and generate dynamic contents during

More information

ONLINE CAB SCHEDULING SYSTEM

ONLINE CAB SCHEDULING SYSTEM ONLINE CAB SCHEDULING SYSTEM CONTENTS Page No. Acknowledgement 3 Declaration 4 1. Introduction & Objectives of the Project 1.1. Introduction 7 1.2. Objectives 8 1.3. Advantage 10 1.4. Project Category

More information

1. Introduction. 2. Life Cycle Why JSP is preferred over Servlets? 2.1. Translation. Java Server Pages (JSP) THETOPPERSWAY.

1. Introduction. 2. Life Cycle Why JSP is preferred over Servlets? 2.1. Translation. Java Server Pages (JSP) THETOPPERSWAY. 1. Introduction Java Server Pages (JSP) THETOPPERSWAY.COM Java Server Pages (JSP) is used for creating dynamic web pages. Java code can be inserted in HTML pages by using JSP tags. The tags are used for

More information

Introduction to Java Servlets. SWE 432 Design and Implementation of Software for the Web

Introduction to Java Servlets. SWE 432 Design and Implementation of Software for the Web Introduction to Java Servlets James Baldo Jr. SWE 432 Design and Implementation of Software for the Web Web Applications A web application uses enabling technologies to 1. make web site contents dynamic

More information

6- JSP pages. Juan M. Gimeno, Josep M. Ribó. January, 2008

6- JSP pages. Juan M. Gimeno, Josep M. Ribó. January, 2008 6- JSP pages Juan M. Gimeno, Josep M. Ribó January, 2008 Contents Introduction to web applications with Java technology 1. Introduction. 2. HTTP protocol 3. Servlets 4. Servlet container: Tomcat 5. Web

More information

Building Web Applications With The Struts Framework

Building Web Applications With The Struts Framework Building Web Applications With The Struts Framework ApacheCon 2003 Session TU23 11/18 17:00-18:00 Craig R. McClanahan Senior Staff Engineer Sun Microsystems, Inc. Slides: http://www.apache.org/~craigmcc/

More information

Writing Servlets and JSPs p. 1 Writing a Servlet p. 1 Writing a JSP p. 7 Compiling a Servlet p. 10 Packaging Servlets and JSPs p.

Writing Servlets and JSPs p. 1 Writing a Servlet p. 1 Writing a JSP p. 7 Compiling a Servlet p. 10 Packaging Servlets and JSPs p. Preface p. xiii Writing Servlets and JSPs p. 1 Writing a Servlet p. 1 Writing a JSP p. 7 Compiling a Servlet p. 10 Packaging Servlets and JSPs p. 11 Creating the Deployment Descriptor p. 14 Deploying Servlets

More information

ADVANCED JAVA COURSE CURRICULUM

ADVANCED JAVA COURSE CURRICULUM ADVANCED JAVA COURSE CURRICULUM Index of Advanced Java Course Content : 1. Basics of Servlet 2. ServletRequest 3. Servlet Collaboration 4. ServletConfig 5. ServletContext 6. Attribute 7. Session Tracking

More information

JSP MOCK TEST JSP MOCK TEST IV

JSP MOCK TEST JSP MOCK TEST IV http://www.tutorialspoint.com JSP MOCK TEST Copyright tutorialspoint.com This section presents you various set of Mock Tests related to JSP Framework. You can download these sample mock tests at your local

More information

Adv. Web Technology 3) Java Server Pages

Adv. Web Technology 3) Java Server Pages Adv. Web Technology 3) Java Server Pages Emmanuel Benoist Fall Term 2016-17 Berner Fachhochschule Haute cole spcialise bernoise Berne University of Applied Sciences 1 Presentation of the Course I Introduction

More information

Session 11. Expression Language (EL) Reading

Session 11. Expression Language (EL) Reading Session 11 Expression Language (EL) 1 Reading Reading Head First pages 368-401 Sun Java EE 5 Chapter 5 in the Tutorial java.sun.com/javaee/5/docs/tutorial/doc/javaeetutorial.pdf / / / / / Reference JSTL

More information

Servlet and JSP Review

Servlet and JSP Review 2006 Marty Hall Servlet and JSP Review A Recap of the Basics 2 JSP, Servlet, Struts, JSF, AJAX, & Java 5 Training: http://courses.coreservlets.com J2EE Books from Sun Press: http://www.coreservlets.com

More information

AN ISO 9001:2008 CERTIFIED COMPANY ADVANCED. Java TRAINING.

AN ISO 9001:2008 CERTIFIED COMPANY ADVANCED. Java TRAINING. AN ISO 9001:2008 CERTIFIED COMPANY ADVANCED Java TRAINING www.webliquids.com ABOUT US Who we are: WebLiquids is an ISO (9001:2008), Google, Microsoft Certified Advanced Web Educational Training Organisation.

More information

Application Development in JAVA. Data Types, Variable, Comments & Operators. Part I: Core Java (J2SE) Getting Started

Application Development in JAVA. Data Types, Variable, Comments & Operators. Part I: Core Java (J2SE) Getting Started Application Development in JAVA Duration Lecture: Specialization x Hours Core Java (J2SE) & Advance Java (J2EE) Detailed Module Part I: Core Java (J2SE) Getting Started What is Java all about? Features

More information

Introduction To Web Architecture

Introduction To Web Architecture Introduction To Web Architecture 1 Session Plan Topic Estimated Duration Distributed computing 20 min Overview of Sun Microsoft Architecture 15 min Overview of Microsoft Architecture 15 min Summary 15

More information

Chapter 2 FEATURES AND FACILITIES. SYS-ED/ Computer Education Techniques, Inc.

Chapter 2 FEATURES AND FACILITIES. SYS-ED/ Computer Education Techniques, Inc. Chapter 2 FEATURES AND FACILITIES SYS-ED/ Computer Education Techniques, Inc. Objectives You will learn: JDeveloper features. Java in the database. Simplified database access. IDE: Integrated Development

More information

DVS WEB INFOTECH DEVELOPMENT TRAINING RESEARCH CENTER

DVS WEB INFOTECH DEVELOPMENT TRAINING RESEARCH CENTER DVS WEB INFOTECH DEVELOPMENT TRAINING RESEARCH CENTER J2EE CURRICULUM Mob : +91-9024222000 Mob : +91-8561925707 Email : info@dvswebinfotech.com Email : hr@dvswebinfotech.com 48, Sultan Nagar,Near Under

More information

How to structure a web application with the MVC pattern

How to structure a web application with the MVC pattern Objectives Chapter 2 How to structure a web application with the MVC pattern Knowledge 1. Describe the Model 1 pattern. 2. Describe the Model 2 (MVC) pattern 3. Explain how the MVC pattern can improve

More information

Chapter 10 Servlets and Java Server Pages

Chapter 10 Servlets and Java Server Pages Chapter 10 Servlets and Java Server Pages 10.1 Overview of Servlets A servlet is a Java class designed to be run in the context of a special servlet container An instance of the servlet class is instantiated

More information

IBM LOT-985. Developing IBM Lotus Notes and Domino(R) 8.5 Applications.

IBM LOT-985. Developing IBM Lotus Notes and Domino(R) 8.5 Applications. IBM LOT-985 Developing IBM Lotus Notes and Domino(R) 8.5 Applications http://killexams.com/exam-detail/lot-985 QUESTION: 182 Robert is adding an editable field called CountryLocation to the Member form

More information

Enterprise Java Unit 1- Chapter 3 Prof. Sujata Rizal Introduction to Servlets

Enterprise Java Unit 1- Chapter 3 Prof. Sujata Rizal Introduction to Servlets 1. Introduction How do the pages you're reading in your favorite Web browser show up there? When you log into your favorite Web site, how does the Web site know that you're you? And how do Web retailers

More information

CIS 3308 Logon Homework

CIS 3308 Logon Homework CIS 3308 Logon Homework Lab Overview In this lab, you shall enhance your web application so that it provides logon and logoff functionality and a profile page that is only available to logged-on users.

More information

SNS COLLEGE OF ENGINEERING, Coimbatore

SNS COLLEGE OF ENGINEERING, Coimbatore SNS COLLEGE OF ENGINEERING, Coimbatore 641 107 Accredited by NAAC UGC with A Grade Approved by AICTE and Affiliated to Anna University, Chennai IT6503 WEB PROGRAMMING UNIT 04 APPLETS Java applets- Life

More information

Java Enterprise Edition. Java EE Oct Dec 2016 EFREI/M1 Jacques André Augustin Page 1

Java Enterprise Edition. Java EE Oct Dec 2016 EFREI/M1 Jacques André Augustin Page 1 Java Enterprise Edition Java EE Oct Dec 2016 EFREI/M1 Jacques André Augustin Page 1 Java Beans Java EE Oct Dec 2016 EFREI/M1 Jacques André Augustin Page 2 Java Bean POJO class : private Attributes public

More information

Oracle EXAM - 1Z Java Enterprise Edition 5 Web Component Developer Certified Professional Exam. Buy Full Product

Oracle EXAM - 1Z Java Enterprise Edition 5 Web Component Developer Certified Professional Exam. Buy Full Product Oracle EXAM - 1Z0-858 Java Enterprise Edition 5 Web Component Developer Certified Professional Exam Buy Full Product http://www.examskey.com/1z0-858.html Examskey Oracle 1Z0-858 exam demo product is here

More information

Appendix A - Glossary(of OO software term s)

Appendix A - Glossary(of OO software term s) Appendix A - Glossary(of OO software term s) Abstract Class A class that does not supply an implementation for its entire interface, and so consequently, cannot be instantiated. ActiveX Microsoft s component

More information

Unit 4. CRM - Web Marketing 4-1

Unit 4. CRM - Web Marketing 4-1 Unit 4. CRM - Web Marketing What This Unit Is About Identify/utilize the components of the framework to build and run Web Marketing solutions What You Should Be Able to Do After completing this unit, you

More information

The Basic Web Server CGI. CGI: Illustration. Web based Applications, Tomcat and Servlets - Lab 3 - CMPUT 391 Database Management Systems 4

The Basic Web Server CGI. CGI: Illustration. Web based Applications, Tomcat and Servlets - Lab 3 - CMPUT 391 Database Management Systems 4 CMPUT 391 Database Management Systems The Basic Web based Applications, - - CMPUT 391 Database Management Systems Department of Computing Science University of Alberta CMPUT 391 Database Management Systems

More information

The Struts MVC Design. Sample Content

The Struts MVC Design. Sample Content Struts Architecture The Struts MVC Design Sample Content The Struts t Framework Struts implements a MVC infrastructure on top of J2EE One Servlet acts as the Front Controller Base classes are provided

More information

COURSE 9 DESIGN PATTERNS

COURSE 9 DESIGN PATTERNS COURSE 9 DESIGN PATTERNS CONTENT Applications split on levels J2EE Design Patterns APPLICATION SERVERS In the 90 s, systems should be client-server Today, enterprise applications use the multi-tier model

More information

JSP CSCI 201 Principles of Software Development

JSP CSCI 201 Principles of Software Development JSP CSCI 201 Principles of Software Development Jeffrey Miller, Ph.D. jeffrey.miller@usc.edu Outline JSP Program USC CSCI 201L JSP 3-Tier Architecture Client Server Web/Application Server Database USC

More information

Jakarta Struts: An MVC Framework

Jakarta Struts: An MVC Framework Jakarta Struts: An MVC Framework Overview, Installation, and Setup. Struts 1.2 Version. Core Servlets & JSP book: More Servlets & JSP book: www.moreservlets.com Servlet/JSP/Struts/JSF Training: courses.coreservlets.com

More information