Structure of a webapplication

Size: px
Start display at page:

Download "Structure of a webapplication"

Transcription

1 Structure of a webapplication Catalogue structure: / The root of a web application. This directory holds things that are directly available to the client. HTML-files, JSP s, style sheets etc The root is mapped by the tomcat configuration. The default is $INST_DIR\webapps\name_of_appl locally on Solaris we use ~/tomcat /WEB-INF This is a subcatalogue in the webapplication root. Things in here are not available to the client directly. This is a reserved name that is used by tomcat to detect a web application and it triggers tomcat to try a deployment during the startupscan. Structure of a webapplication 28 January

2 /WEB-INF/lib Jar files that will be use by the application, eg JSTL /WEB-INF/classes class files for servlets, userdefined tags and JavaBeans /WEB-INF/*.tld tag library definition files /WEB-INF/web.xml The web application definition file, i. e. the deployment descriptor. Structure of a webapplication 28 January

3 Can look like this: kursa.it.uu.se> cd tomcat kursa.it.uu.se> ls -R error.jsp test.jsp test.xsl WEB-INF./WEB-INF: classes c.tld lib src web.xml x.tld./web-inf/classes: com./web-inf/classes/com: mimer./web-inf/classes/com/mimer: fredrik./web-inf/classes/com/mimer/fredrik: TestBean.class TestServlet.class./WEB-INF/lib: jstl.jar standard.jar./web-inf/src: com Structure of a webapplication 28 January

4 ./WEB-INF/src/com: mimer./web-inf/src/com/mimer: fredrik./web-inf/src/com/mimer/fredrik: TestBean.java TestServlet.java Structure of a webapplication 28 January

5 To distribute an application, you can pack this structure into a WAR-file. A WAR file is just a jar file create with the Java Archiver (jar) with another filetype. Structure of a webapplication 28 January

6 The content of web.xml Describes a web application from different aspects. Application context parameters servlet mappings user defined tags authorization etc Structure of a webapplication 28 January

7 Structure is <?xml... > <web-app> paragraph paragraph... </web-app> Order is sometimes significant Case is significant Structure of a webapplication 28 January

8 Examples with a servlet 2.5/JSP 2.1 header <?xml version = '1.0' encoding = 'UTF-8'?> <web-app xmlns=" xmlns:xsi= " xsi:schemalocation = " java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5" > <context-param> <param-name>dbname</param-name> <param-value>murach</param-value> </context-param> <servlet> <servlet-name> 6. servlet </servlet-name> <servlet-class> 6. servlet </servlet-class> <init-param> <param-name> filename </param-name> <param-value>../webapps/murach/user .txt </param-value> </init-param> Structure of a webapplication 28 January

9 </servlet> </web-app> A Servlet 2.4/JSP 2.0 (J2EE 1.4) header goes like <web-app xmlns=" xmlns:xsi= " xsi:schemalocation = " java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4" > A Servlet 2.3/JSP 1.2 (J2EE 1.3) header goes like <?xml version = 1.0 encoding = utf-8?> <!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN > <web-app>... </webapp> Structure of a webapplication 28 January

10 We can introduce servlet mappings to simplify the access of a servlet. instead of saying /servlet/package.classname I setup a mapping: <servlet-mapping> <servlet-name> 6. servlet </servlet-name> <url-pattern> /myservlet </url-pattern> </servlet-mapping> Now I can access my servlet using: /myservlet Usually you introduce a logical servlet name to avoid having the physical name in a lot of places. See later examples. You should always use mappings in real applications because this gives you the full potential of the container including security, filtering etc. Structure of a webapplication 28 January

11 You can also set servletspecific init-parameters. This is a way to avoid hardcoded resource names. <servlet>... <init-param> <param-name> CHECKOUT_PAGE </param-name> <param-value> /checkout.jsp </param-value> </init-param> <init-param> <param-name> JDBC_URL </param-name> <param-value> jdbc:mysql://tomcat.it.uu.se/ test?user=olle&password=xxxx </param-value> <description> The Database URL to use </description> </init-param> <init-param> <param-name> Structure of a webapplication 28 January

12 SHOW_PAGE </param-name> <param-value> /show.jsp </param-value> </init-param> <init-param> <param-name> THANKYOU_PAGE </param-name> <param-value> /thankyou.jsp </param-value> </init-param> <init-param> <param-name> DETAIL_PAGE </param-name> <param-value> /detail.jsp </param-value> </init-param> </servlet> Structure of a webapplication 28 January

13 Other elements in web.xml, presented here without respect to ordering. <session-config> <session-timeout> 30 </session-timeout> </session-config> <mime-mapping> <extension> html </extension> <mime-type> text/html </mime-type> </mime-mapping> <welcome-file-list> <welcome-file> index.jsp </welcome-file> <welcome-file> index.html </welcome-file> </welcome-file-list> <error-page> <exception-type> java.lang.throwable </exception-type> <location> Structure of a webapplication 28 January

14 / 6/error.html </location> </error-page> <error-page> <error-code> 404 </error-code> <location> / 6/error_404.jsp </location </error-page> Structure of a webapplication 28 January

15 An example, the simple test servlet that we have shown before <?xml version = '1.0' encoding = 'UTF-8'?> <web-app xmlns=" xmlns:xsi= " xsi:schemalocation = " java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5" > <servlet> <servlet-name> TestServlet </servlet-name> <servlet-class> com.mimer.fredrik.testservlet </servlet-class> </servlet> <servlet-mapping> <servlet-name> TestServlet </servlet-name> <url-pattern> /testservlet </url-pattern> </servlet-mapping> <taglib> Structure of a webapplication 28 January

16 <taglib-uri> </taglib-uri> <taglib-location> /WEB-INF/c.tld </taglib-location> </taglib> <taglib> <taglib-uri> </taglib-uri> <taglib-location> /WEB-INF/x.tld </taglib-location> </taglib> </web-app> Structure of a webapplication 28 January

17 And another example <?xml version = '1.0' encoding = 'UTF-8'?> <web-app xmlns=" xmlns:xsi= " xsi:schemalocation = " java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5" > <servlet> <servlet-name> Shop </servlet-name> <servlet-class> se.upright.education.uu.pvk.assignmenttwo. servlets.shopservlet </servlet-class> <init-param> <param-name> CHECKOUT_PAGE </param-name> <param-value> /checkout.jsp </param-value> </init-param> <init-param> <param-name> JDBC_URL </param-name> <param-value> jdbc:mysql://tomcat.it.uu.se/test </param-value> <description> The Database URL to use </description> </init-param> <init-param> <param-name> SHOW_PAGE </param-name> Structure of a webapplication 28 January

18 <param-value> /show.jsp </param-value> </init-param> <init-param> <param-name> THANKYOU_PAGE </param-name> <param-value> /thankyou.jsp </param-value> </init-param> <init-param> <param-name> DETAIL_PAGE </param-name> <param-value> /detail.jsp </param-value> </init-param> </servlet> <servlet-mapping> <servlet-name> Shop </servlet-name> <url-pattern> /shop </url-pattern> </servlet-mapping> <session-config> <session-timeout> 30 </session-timeout> </session-config> <taglib> <taglib-uri> </taglib-uri> <taglib-location> /WEB-INF/c.tld </taglib-location> Structure of a webapplication 28 January

19 </taglib> <taglib> <taglib-uri> </taglib-uri> <taglib-location> /WEB-INF/x.tld </taglib-location> </taglib> <taglib> <taglib-uri> /bookshop </taglib-uri> <taglib-location> /WEB-INF/bookshop.tld </taglib-location> </taglib> </web-app> Structure of a webapplication 28 January

20 Authorization, i. e. access to applications You can setup security constraints on your application. Those are based on URL-patterns. A security constraint protects a web resource so that access is granted only for the roles listed in a constraint. e. g. <security-constraint> <web-resource-collection> <web-resource-name> TheShop </web-resource-name> <url-pattern> /* </url-pattern> </web-resource-collection> <auth-constraint> <role-name> tomcat </role-name> </auth-constraint> <user-data-constraint> <transport-guarantee> NONE </transport-guarantee> </user-data-constraint> </security-constraint> Structure of a webapplication 28 January

21 The web-resource-collection specifies a name, which is mandatory even if it s not used. It also specifies one or more URL-pattern that is to be protected. You can optionally have one or more http-method tags that specifies the HTTP methods the contstraint applies to. The default is all methods. URL-patterns can look like: /test.jsp /*.jsp /* /test/* The auth-constraint specfies the roles that are allowed access to this resources. Roles are setup in tomcat configuration with username, password and rolename. We do have a rule tomcat with username and password tomcat. Structure of a webapplication 28 January

22 There is also a user-data-constraint tag. It specifies how data should be transmitted across the network. Possible values are: NONE, INTEGRAL, CONFIDENTIAL, No requirement The transport protocol should guarantee the integrity of data Prevent observing the data by others than the recipient, i. e. use SSL or something similar Structure of a webapplication 28 January

23 Authentication can be done in several ways. Basic authentication, Digest authentication, Form-based auth. uses the normal login mechanism of the browser. Unencrypted transmission of password and username same as above but with encrypted transmission. Only supported by Internet Explorer Allows you to code an HTML-form that uses predefined actions to log in. Unencrypted transmission Structure of a webapplication 28 January

24 Basic <login-config> <auth-method> BASIC </auth-method> <realm-name> Admin Login </realm-name> </login-config> The realm-name is used to print an information text on the login banner. You have three possibilities to enter a valid username and password. If you fail an error page will be displayed. A successful login will be stored in the session and you can access all pages without reentering the password. Structure of a webapplication 28 January

25 FORM <login-config> <auth-method> FORM </auth-method> <form-login-config> <form-login-page> /login.jsp </form-login-page> <form-error-page> /login_error.jsp </form-error-page> </form-login-config> </login-config> This means that a JSP called login.jsp will be used to display a login form. If you fail to login, the JSP login_error will be called. In tomcat, there are predefined actions that you should use. Structure of a webapplication 28 January

26 login.jsp <html> <head> <title>login Page for the Bookshop</title> <body bgcolor= white > <form method= POST action= <%= response.encodeurl( j_security_check ) %> > <table border= 0 cellspacing= 5 align= center > <tr> <td colspan= 2 bgcolor= #FFDC75 > <h2>log in to the Bookshop</h2> </td> </tr> <tr> <td colspan= 2 ></td> </tr> <tr> <th align= right >Username:</th> <td align= left ><input type= text name= j_username > </td> </tr> Structure of a webapplication 28 January

27 <tr> <th align= right >Password:</th> <td align= left ><input type= password name= j_password > </td> </tr> <tr> <td align= right ><input type= submit value= Log In > </td> <td align= left ><input type= reset > </td> </tr> </table> </form> </body> </html> Structure of a webapplication 28 January

28 Will give you this Structure of a webapplication 28 January

29 The error page goes like <html> <head> <title>error Page for the Bookshop</title> </head> <body bgcolor= white > Invalid username and/or password, please try <a href= <%= response.encodeurl ( show.jsp ) %> >again</a>. </body> </html> will display Invalid username and/or password, please try again. Structure of a webapplication 28 January

30 You can also have the security-role tag. This lists all roles that you can use in a security-constraint <security-role> <role-name> tomcat </role-name> </security-role> Structure of a webapplication 28 January

31 An introduction to session tracking HTTP is a stateless protocol. It has no recollection of events. To overcome this the web-container maintains a session for each user. For identification, cookies are used. An introduction to session tracking 28 January

32 A cookie is a name/value pair value that is stored in the browser. The server creates a cookie and sends it to the browser. The browser saves the cookie in its cookiefile or in memory. Each time the browser send a request to the server, the cookies are stored in the request object and the server can use them to connect to the correct session. An introduction to session tracking 28 January

33 Examples of cookies are jsessionid=d1f e f user_id=87 username=jsmith passwordcookie=opensesame Typical use of cookies: To allow users to skip logins and registration forms To customize pages that displays information To focus advertising An introduction to session tracking 28 January

34 In the browser you can see: An introduction to session tracking 28 January

35 A servlet can use the following code snippet to get the cookie and to get the sessionid. Cookie [] cookies = request.getcookies(); String cookiename = JSESSIONID ; String cookievalue = ; for(int i=0; i < cookies.length; i++) { Cookie cookie = cookies[i]; if (cookiename.equals(cookie.getname())) cookievalue = cookie.getvalue(); An introduction to session tracking 28 January

36 If you have setup the browser to disallow cookies this scheme cannot be used. Instead a sessionid is appended to the URL. To do this you have to use the encodeurl method of the response block when outputting a URL. E. g. in a servlet: PrintWriter out = response.getwriter(); out.println( Click <a href=\ + response.encodeurl( test.jsp ) + \ > here </a> ); An introduction to session tracking 28 January

37 This will check if cookies can be stored in the browser. If it cannot, the sessionid will be appended to the URL and sent to the browser. An introduction to session tracking 28 January

38 To see this a simple demoservlet has been used. I can press here at the end of the page to reload the page. This will rewrite the URL and the result is visible in the location field. An introduction to session tracking 28 January

39 If I enable cookies it will look like An introduction to session tracking 28 January

40 If you have cookies disabled in the browser the server will send back URL s with the sessionid appended. Each time you submit a form with such a URL, the session id is transferred back to the server. I you fail to pass your URL through the decoding process, you will not be able to connect to your session. An introduction to session tracking 28 January

41 An introduction to session tracking 28 January

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

Servlets. An extension of a web server runs inside a servlet container

Servlets. An extension of a web server runs inside a servlet container Servlets What is a servlet? An extension of a web server runs inside a servlet container A Java class derived from the HttpServlet class A controller in webapplications captures requests can forward requests

More information

Web applications and JSP. Carl Nettelblad

Web applications and JSP. Carl Nettelblad Web applications and JSP Carl Nettelblad 2015-04-02 Outline Review and assignment Jara Server Pages Web application structure Review We send repeated requests using HTTP Each request asks for a specific

More information

Session 8. Reading and Reference. en.wikipedia.org/wiki/list_of_http_headers. en.wikipedia.org/wiki/http_status_codes

Session 8. Reading and Reference. en.wikipedia.org/wiki/list_of_http_headers. en.wikipedia.org/wiki/http_status_codes Session 8 Deployment Descriptor 1 Reading Reading and Reference en.wikipedia.org/wiki/http Reference http headers en.wikipedia.org/wiki/list_of_http_headers http status codes en.wikipedia.org/wiki/_status_codes

More information

Web Application Architecture (based J2EE 1.4 Tutorial)

Web Application Architecture (based J2EE 1.4 Tutorial) Web Application Architecture (based J2EE 1.4 Tutorial) Dr. Kanda Runapongsa (krunapon@kku.ac.th) Department of Computer Engineering Khon Kaen University 1 Agenda Web application, components and container

More information

Session 9. Deployment Descriptor Http. Reading and Reference. en.wikipedia.org/wiki/http. en.wikipedia.org/wiki/list_of_http_headers

Session 9. Deployment Descriptor Http. Reading and Reference. en.wikipedia.org/wiki/http. en.wikipedia.org/wiki/list_of_http_headers Session 9 Deployment Descriptor Http 1 Reading Reading and Reference en.wikipedia.org/wiki/http Reference http headers en.wikipedia.org/wiki/list_of_http_headers http status codes en.wikipedia.org/wiki/http_status_codes

More information

Servlets1. What are Servlets? Where are they? Their job. Servlet container. Only Http?

Servlets1. What are Servlets? Where are they? Their job. Servlet container. Only Http? What are Servlets? Servlets1 Fatemeh Abbasinejad abbasine@cs.ucdavis.edu A program that runs on a web server acting as middle layer between requests coming from a web browser and databases or applications

More information

UIMA Simple Server User Guide

UIMA Simple Server User Guide UIMA Simple Server User Guide Written and maintained by the Apache UIMA Development Community Version 2.3.1 Copyright 2006, 2011 The Apache Software Foundation License and Disclaimer. The ASF licenses

More information

Configuring Tomcat for a Web Application

Configuring Tomcat for a Web Application Configuring Tomcat for a Web Application In order to configure Tomcat for a web application, files must be put into the proper places and the web.xml file should be edited to tell Tomcat where the servlet

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

servlets and Java JSP murach s (Chapter 2) TRAINING & REFERENCE Mike Murach & Associates Andrea Steelman Joel Murach

servlets and Java JSP murach s (Chapter 2) TRAINING & REFERENCE Mike Murach & Associates Andrea Steelman Joel Murach Chapter 4 How to develop JavaServer Pages 97 TRAINING & REFERENCE murach s Java servlets and (Chapter 2) JSP Andrea Steelman Joel Murach Mike Murach & Associates 2560 West Shaw Lane, Suite 101 Fresno,

More information

SECTION II: JAVA SERVLETS

SECTION II: JAVA SERVLETS Chapter 7 SECTION II: JAVA SERVLETS Working With Servlets Working with Servlets is an important step in the process of application development and delivery through the Internet. A Servlet as explained

More information

XML and XSLT. XML and XSLT 10 February

XML and XSLT. XML and XSLT 10 February XML and XSLT XML (Extensible Markup Language) has the following features. Not used to generate layout but to describe data. Uses tags to describe different items just as HTML, No predefined tags, just

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

Vendor: SUN. Exam Code: Exam Name: Sun Certified Web Component Developer for J2EE 5. Version: Demo

Vendor: SUN. Exam Code: Exam Name: Sun Certified Web Component Developer for J2EE 5. Version: Demo Vendor: SUN Exam Code: 310-083 Exam Name: Sun Certified Web Component Developer for J2EE 5 Version: Demo QUESTION NO: 1 You need to store a Java long primitive attribute, called customeroid, into the session

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

HTTP and HTML. We will use HTML as a frontend to our webapplications, therefore a basic knowledge of HTML is required, especially in forms.

HTTP and HTML. We will use HTML as a frontend to our webapplications, therefore a basic knowledge of HTML is required, especially in forms. HTTP and HTML We will use HTML as a frontend to our webapplications, therefore a basic knowledge of HTML is required, especially in forms. HTTP and HTML 28 January 2008 1 When the browser and the server

More information

Module 3 Web Component

Module 3 Web Component Module 3 Component Model Objectives Describe the role of web components in a Java EE application Define the HTTP request-response model Compare Java servlets and JSP components Describe the basic session

More information

Session 8. Introduction to Servlets. Semester Project

Session 8. Introduction to Servlets. Semester Project Session 8 Introduction to Servlets 1 Semester Project Reverse engineer a version of the Oracle site You will be validating form fields with Ajax calls to a server You will use multiple formats for the

More information

Tutorial: Developing a Simple Hello World Portlet

Tutorial: Developing a Simple Hello World Portlet Venkata Sri Vatsav Reddy Konreddy Tutorial: Developing a Simple Hello World Portlet CIS 764 This Tutorial helps to create and deploy a simple Portlet. This tutorial uses Apache Pluto Server, a freeware

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

Topics Augmenting Application.cfm with Filters. What a filter can do. What s a filter? What s it got to do with. Isn t it a java thing?

Topics Augmenting Application.cfm with Filters. What a filter can do. What s a filter? What s it got to do with. Isn t it a java thing? Topics Augmenting Application.cfm with Filters Charles Arehart Founder/CTO, Systemanage carehart@systemanage.com http://www.systemanage.com What s a filter? What s it got to do with Application.cfm? Template

More information

Servlet Fudamentals. Celsina Bignoli

Servlet Fudamentals. Celsina Bignoli Servlet Fudamentals Celsina Bignoli bignolic@smccd.net What can you build with Servlets? Search Engines E-Commerce Applications Shopping Carts Product Catalogs Intranet Applications Groupware Applications:

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

Introduction to Servlets. After which you will doget it

Introduction to Servlets. After which you will doget it Introduction to Servlets After which you will doget it Servlet technology A Java servlet is a Java program that extends the capabilities of a server. Although servlets can respond to any types of requests,

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

Servlets by Example. Joe Howse 7 June 2011

Servlets by Example. Joe Howse 7 June 2011 Servlets by Example Joe Howse 7 June 2011 What is a servlet? A servlet is a Java application that receives HTTP requests as input and generates HTTP responses as output. As the name implies, it runs on

More information

Unraveling the Mysteries of J2EE Web Application Communications

Unraveling the Mysteries of J2EE Web Application Communications Unraveling the Mysteries of J2EE Web Application Communications An HTTP Primer Peter Koletzke Technical Director & Principal Instructor Common Problem What we ve got here is failure to commun cate. Captain,

More information

LearningPatterns, Inc. Courseware Student Guide

LearningPatterns, Inc. Courseware Student Guide Fast Track to Servlets and JSP Developer's Workshop LearningPatterns, Inc. Courseware Student Guide This material is copyrighted by LearningPatterns Inc. This content shall not be reproduced, edited, or

More information

STRUTS 2 - HELLO WORLD EXAMPLE

STRUTS 2 - HELLO WORLD EXAMPLE STRUTS 2 - HELLO WORLD EXAMPLE http://www.tutorialspoint.com/struts_2/struts_examples.htm Copyright tutorialspoint.com As you learnt from the Struts 2 architecture, when you click on a hyperlink or submit

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

FUEGO 5.5 WORK PORTAL. (Using Tomcat 5) Fernando Dobladez

FUEGO 5.5 WORK PORTAL. (Using Tomcat 5) Fernando Dobladez FUEGO 5.5 WORK PORTAL SINGLE-SIGN-ON WITH A WINDOWS DOMAIN (Using Tomcat 5) Fernando Dobladez ferd@fuego.com December 30, 2005 3 IIS CONFIGURATION Abstract This document describes a way of configuring

More information

CHAPTER 6. Organizing Your Development Project. All right, guys! It s time to clean up this town!

CHAPTER 6. Organizing Your Development Project. All right, guys! It s time to clean up this town! CHAPTER 6 Organizing Your Development Project All right, guys! It s time to clean up this town! Homer Simpson In this book we describe how to build applications that are defined by the J2EE specification.

More information

Common-Controls Quickstart

Common-Controls Quickstart Common-Controls Quickstart Version 1.1.0 - Stand: 20. November 2003 Published by: SCC Informationssysteme GmbH 64367 Mühltal Tel: +49 (0) 6151 / 13 6 31 0 Internet www.scc-gmbh.com Product Site http://www.common-controls.com

More information

Lab1: Stateless Session Bean for Registration Fee Calculation

Lab1: Stateless Session Bean for Registration Fee Calculation Registration Fee Calculation The Lab1 is a Web application of conference registration fee discount calculation. There may be sub-conferences for attendee to select. The registration fee varies for different

More information

BEA WebLogic. Server. Assembling and Configuring Web Applications

BEA WebLogic. Server. Assembling and Configuring Web Applications BEA WebLogic Server Assembling and Configuring Web Applications Release 7.0 Document Revised: April 2004 Copyright Copyright 2002 BEA Systems, Inc. All Rights Reserved. Restricted Rights Legend This software

More information

SUN Enterprise Development with iplanet Application Server

SUN Enterprise Development with iplanet Application Server SUN 310-540 Enterprise Development with iplanet Application Server 6.0 http://killexams.com/exam-detail/310-540 QUESTION: 96 You just created a new J2EE application (EAR) file using iasdt. How do you begin

More information

How to Configure Authentication and Access Control (AAA)

How to Configure Authentication and Access Control (AAA) How to Configure Authentication and Access Control (AAA) Overview The Barracuda Web Application Firewall provides features to implement user authentication and access control. You can create a virtual

More information

xcp 2.0 SSO Integrations RAJAKUMAR THIRUVASAGAM

xcp 2.0 SSO Integrations RAJAKUMAR THIRUVASAGAM xcp 2.0 SSO Integrations RAJAKUMAR THIRUVASAGAM Contents Overview... 4 General Information... 5 Kerberos Integration... 6 Snapshots... 6 Demo Environment... 7 Setup Instructions... 7 Kerberos setup...

More information

White Paper. Fabasoft Folio Portlet. Fabasoft Folio 2017 R1 Update Rollup 1

White Paper. Fabasoft Folio Portlet. Fabasoft Folio 2017 R1 Update Rollup 1 White Paper Fabasoft Folio Portlet Fabasoft Folio 2017 R1 Update Rollup 1 Copyright Fabasoft R&D GmbH, Linz, Austria, 2018. All rights reserved. All hardware and software names used are registered trade

More information

15-415: Database Applications Project 2. CMUQFlix - CMUQ s Movie Recommendation System

15-415: Database Applications Project 2. CMUQFlix - CMUQ s Movie Recommendation System 15-415: Database Applications Project 2 CMUQFlix - CMUQ s Movie Recommendation System School of Computer Science Carnegie Mellon University, Qatar Spring 2016 Assigned date: February 18, 2016 Due date:

More information

CA SiteMinder Federation Security Services

CA SiteMinder Federation Security Services CA SiteMinder Federation Security Services Federation Endpoint Deployment Guide r6.0 SP 5 Fourth Edition This documentation and any related computer software help programs (hereinafter referred to as the

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

Lecture 9a: Sessions and Cookies

Lecture 9a: Sessions and Cookies CS 655 / 441 Fall 2007 Lecture 9a: Sessions and Cookies 1 Review: Structure of a Web Application On every interchange between client and server, server must: Parse request. Look up session state and global

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

CSC 8205 Advanced Java

CSC 8205 Advanced Java Please read this first: 1) All the assignments must be submitted via blackboard account. 2) All the assignments for this course are posted below. The due dates for each assignment are announced on blackboard.

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

The DataNucleus REST API provides a RESTful interface to persist JSON objects to the datastore. All entities are accessed, queried and stored as

The DataNucleus REST API provides a RESTful interface to persist JSON objects to the datastore. All entities are accessed, queried and stored as REST API Guide Table of Contents Servlet Configuration....................................................................... 2 Libraries.................................................................................

More information

Oracle 1Z Java EE 6 Web Component Developer(R) Certified Expert.

Oracle 1Z Java EE 6 Web Component Developer(R) Certified Expert. Oracle 1Z0-899 Java EE 6 Web Component Developer(R) Certified Expert http://killexams.com/exam-detail/1z0-899 QUESTION: 98 Given: 3. class MyServlet extends HttpServlet { 4. public void doput(httpservletrequest

More information

Novell Access Manager authentication class for OpenID authentication

Novell Access Manager authentication class for OpenID authentication Novell Access Manager authentication class for OpenID authentication (Requires NovellAccessManager 3.1 SP1 IR1 or later) Introduction: This article describes the steps to deploy and configure a new authentication

More information

JBoss SOAP Web Services User Guide. Version: M5

JBoss SOAP Web Services User Guide. Version: M5 JBoss SOAP Web Services User Guide Version: 3.3.0.M5 1. JBoss SOAP Web Services Runtime and Tools support Overview... 1 1.1. Key Features of JBossWS... 1 2. Creating a Simple Web Service... 3 2.1. Generation...

More information

Author - Ashfaque Ahmed

Author - Ashfaque Ahmed Complimentary material for the book Software Engineering in the Agile World (ISBN: 978-1983801570) published by Create Space Independent Publishing Platform, USA Author - Ashfaque Ahmed Technical support

More information

To follow the Deitel publishing program, sign-up now for the DEITEL BUZZ ON-

To follow the Deitel publishing program, sign-up now for the DEITEL BUZZ ON- Ordering Information: Advanced Java 2 Platform How to Program View the complete Table of Contents Read the Preface Download the Code Examples To view all the Deitel products and services available, visit

More information

CS506 today quiz solved by eagle_eye and naeem latif.mcs. All are sloved 99% but b carefull before submitting ur own quiz tc Remember us in ur prayerz

CS506 today quiz solved by eagle_eye and naeem latif.mcs. All are sloved 99% but b carefull before submitting ur own quiz tc Remember us in ur prayerz CS506 today quiz solved by eagle_eye and naeem latif.mcs All are sloved 99% but b carefull before submitting ur own quiz tc Remember us in ur prayerz Question # 1 of 10 ( Start time: 04:33:36 PM ) Total

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

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

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

Handout 31 Web Design & Development

Handout 31 Web Design & Development Lecture 31 Session Tracking We have discussed the importance of session tracking in the previous handout. Now, we ll discover the basic techniques used for session tracking. Cookies are one of these techniques

More information

SAS Web Infrastructure Kit 1.0. Developer s Guide

SAS Web Infrastructure Kit 1.0. Developer s Guide SAS Web Infrastructure Kit 1.0 Developer s Guide The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2004. SAS Web Infrastructure Kit 1.0: Developer s Guide. Cary, NC:

More information

Session 9. Introduction to Servlets. Lecture Objectives

Session 9. Introduction to Servlets. Lecture Objectives Session 9 Introduction to Servlets Lecture Objectives Understand the foundations for client/server Web interactions Understand the servlet life cycle 2 10/11/2018 1 Reading & Reference Reading Use the

More information

How to use J2EE default server

How to use J2EE default server How to use J2EE default server By Hamid Mosavi-Porasl Quick start for Sun Java System Application Server Platform J2EE 1. start default server 2. login in with Admin userid and password, i.e. myy+userid

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

Chapter 17. Web-Application Development

Chapter 17. Web-Application Development Chapter 17. Web-Application Development Table of Contents Objectives... 1 17.1 Introduction... 1 17.2 Examples of Web applications... 2 17.2.1 Blogs... 2 17.2.2 Wikis... 2 17.2.3 Sakai... 3 17.2.4 Digital

More information

2 Oracle WebLogic Overview Prerequisites Baseline Architecture...6

2 Oracle WebLogic Overview Prerequisites Baseline Architecture...6 Table of Contents 1 Oracle Access Manager Integration...1 1.1 Overview...1 1.2 Prerequisites...1 1.3 Deployment...1 1.4 Integration...1 1.5 Authentication Process...1 2 Oracle WebLogic...2 3 Overview...3

More information

ByggSøk plan Project Structure And Build Process

ByggSøk plan Project Structure And Build Process Page 1 of 14 ByggSøk plan Project Structure And Build Process Document id. 11240-doc-05 Doc version 1.0 Status Date Mar 30, 2012 Author(s) ON Checked by DK Approved by PH Page 2 of 14 Document revision

More information

SOA Software Policy Manager Agent v6.1 for WebSphere Application Server Installation Guide

SOA Software Policy Manager Agent v6.1 for WebSphere Application Server Installation Guide SOA Software Policy Manager Agent v6.1 for WebSphere Application Server Installation Guide Trademarks SOA Software and the SOA Software logo are either trademarks or registered trademarks of SOA Software,

More information

PRODUCT DOCUMENTATION. Installing and Implementing Enterprise Contact Center Chat RELEASE 5.1

PRODUCT DOCUMENTATION. Installing and Implementing Enterprise Contact Center Chat RELEASE 5.1 PRODUCT DOCUMENTATION Installing and Implementing Enterprise Contact Center Chat RELEASE 5.1 Document and Software Copyrights Copyright 1998 2009 ShoreTel, Inc. All rights reserved. Printed in the United

More information

KonaKart Portlet Installation for Liferay. 2 nd January DS Data Systems (UK) Ltd., 9 Little Meadow Loughton, Milton Keynes Bucks MK5 8EH UK

KonaKart Portlet Installation for Liferay. 2 nd January DS Data Systems (UK) Ltd., 9 Little Meadow Loughton, Milton Keynes Bucks MK5 8EH UK KonaKart Portlet Installation for Liferay 2 nd January 2018 DS Data Systems (UK) Ltd., 9 Little Meadow Loughton, Milton Keynes Bucks MK5 8EH UK 1 Table of Contents KonaKart Portlets... 3 Supported Versions

More information

The following sections provide sample applications with different features so you can better appreciate the wizard behavior.

The following sections provide sample applications with different features so you can better appreciate the wizard behavior. Plan Creator {scrollbar} To facilitate the creation of Geronimo-specific deployment plans there is a new portlet now available. The Plan Creator wizard available from the Geronimo Administration Console

More information

Servlet for Json or CSV (or XML) A servlet serving either Json or CSV (or XML) based on GET parameter - This version uses org.json

Servlet for Json or CSV (or XML) A servlet serving either Json or CSV (or XML) based on GET parameter - This version uses org.json Servlet for Json or CSV (or XML) A servlet serving either Json or CSV (or XML) based on GET parameter - This version uses org.json A Servlet used as an API for data Let s say we want to write a Servlet

More information

Life Without NetBeans

Life Without NetBeans Life Without NetBeans Part C Web Applications Background What is a WAR? A Java web application consists a collection of Java servlets and regular classes, JSP files, HTML files, JavaScript files, images,

More information

SESM Components and Techniques

SESM Components and Techniques CHAPTER 2 Use the Cisco SESM web application to dynamically render the look-and-feel of the user interface for each subscriber. This chapter describes the following topics: Using SESM Web Components, page

More information

SOA Software Policy Manager Agent v6.1 for tc Server Application Server Installation Guide

SOA Software Policy Manager Agent v6.1 for tc Server Application Server Installation Guide SOA Software Policy Manager Agent v6.1 for tc Server Application Server Installation Guide Trademarks SOA Software and the SOA Software logo are either trademarks or registered trademarks of SOA Software,

More information

SSO Plugin. Installation for BMC AR System. J System Solutions. Version 5.1

SSO Plugin. Installation for BMC AR System. J System Solutions.   Version 5.1 SSO Plugin Installation for BMC AR System J System Solutions http://www.javasystemsolutions.com Version 5.1 Introduction... 3 Compatibility... 4 Operating systems... 4 BMC Action Request System / ITSM...

More information

SAS AppDev Studio TM 3.4 Eclipse Plug-ins. Migration Guide

SAS AppDev Studio TM 3.4 Eclipse Plug-ins. Migration Guide SAS AppDev Studio TM 3.4 Eclipse Plug-ins Migration Guide The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2009. SAS AppDev Studio TM 3.4 Eclipse Plug-ins: Migration

More information

JSF - Facelets Tags JSF - template tags

JSF - Facelets Tags JSF - template tags JSF - Facelets Tags JSF - template tags Templates in a web application defines a common interface layout and style. For example, a same banner, logo in common header and copyright information in footer.

More information

Customizing ArcIMS Using the Java Connector and Python

Customizing ArcIMS Using the Java Connector and Python Customizing ArcIMS Using the Java Connector and Python Randal Goss The ArcIMS Java connector provides the most complete and powerful object model for creating customized ArcIMS Web sites. Java, however,

More information

The Structure and Components of

The Structure and Components of Web Applications The Structure and Components of a JEE Web Application Sample Content garth@ggilmour.com The Structure t of a Web Application The application is deployed in a Web Archive A structured jar

More information

USER GUIDE. SearchBlox Version 6.0. SearchBlox Software, Inc. AAugust 2010

USER GUIDE. SearchBlox Version 6.0. SearchBlox Software, Inc.  AAugust 2010 USER GUIDE SearchBlox Version 6.0 AAugust 2010 SearchBlox Software, Inc. www.searchblox.com info@searchblox.com A 2010 SearchBlox Software, Inc. All Rights Reserved. A Contents 1 Introduction...1 1.1 End

More information

BlueDragon TM 7.0 Deploying CFML on J2EE Application Servers

BlueDragon TM 7.0 Deploying CFML on J2EE Application Servers BlueDragon TM 7.0 Deploying CFML on J2EE Application Servers NEW ATLANTA COMMUNICATIONS, LLC BlueDragon 7.0 Deploying CFML on J2EE Application Servers September 4, 2007 Version 7.0.1 Copyright 1997-2007

More information

1. What is This Guide about / Goals The Project JGuard Configuration... 11

1. What is This Guide about / Goals The Project JGuard Configuration... 11 Copyright 2005-2007 1. What is This Guide about / Goals... 1 2. The Project... 2 3. JGuard Configuration... 11 ii Chapter 1. What is This Guide about / Goals This guide is the result of the JGuard Team

More information

CSC4370/6370 Spring/2010 Project 1 Weight: 40% of the final grade for undergraduates, 20% for graduates. Due: May/8th

CSC4370/6370 Spring/2010 Project 1 Weight: 40% of the final grade for undergraduates, 20% for graduates. Due: May/8th CSC4370/6370 Spring/2010 Project 1 Weight: 40% of the final grade for undergraduates, 20% for graduates. Due: May/8th Note: This project is done by two people team or individual. This project must be completed

More information

ServletExec TM 4.1 User Guide. for Microsoft Internet Information Server Netscape Enterprise Server iplanet Web Server and Apache HTTP Server

ServletExec TM 4.1 User Guide. for Microsoft Internet Information Server Netscape Enterprise Server iplanet Web Server and Apache HTTP Server ServletExec TM 4.1 User Guide for Microsoft Internet Information Server Netscape Enterprise Server iplanet Web Server and Apache HTTP Server NEW ATLANTA COMMUNICATIONS, LLC ServletExec TM 4.1 User Guide

More information

Web Application Development Using Borland JBuilder 8 and BEA WebLogic Server 7.0

Web Application Development Using Borland JBuilder 8 and BEA WebLogic Server 7.0 Web Application Development Using Borland JBuilder 8 and BEA WebLogic Server 7.0 Jumpstart development, deployment, and debugging servlets and JSP A Borland White Paper By Sudhansu Pati, Systems Engineer

More information

Kamnoetvidya Science Academy. Object Oriented Programming using Java. Ferdin Joe John Joseph. Java Session

Kamnoetvidya Science Academy. Object Oriented Programming using Java. Ferdin Joe John Joseph. Java Session Kamnoetvidya Science Academy Object Oriented Programming using Java Ferdin Joe John Joseph Java Session Create the files as required in the below code and try using sessions in java servlets web.xml

More information

Supplement IV.E: Tutorial for Tomcat For Introduction to Java Programming By Y. Daniel Liang

Supplement IV.E: Tutorial for Tomcat For Introduction to Java Programming By Y. Daniel Liang Supplement IV.E: Tutorial for Tomcat 5.5.9 For Introduction to Java Programming By Y. Daniel Liang This supplement covers the following topics: Obtaining and Installing Tomcat Starting and Stopping Tomcat

More information

HYPERION SYSTEM 9 BI+ GETTING STARTED GUIDE APPLICATION BUILDER J2EE RELEASE 9.2

HYPERION SYSTEM 9 BI+ GETTING STARTED GUIDE APPLICATION BUILDER J2EE RELEASE 9.2 HYPERION SYSTEM 9 BI+ APPLICATION BUILDER J2EE RELEASE 9.2 GETTING STARTED GUIDE Copyright 1998-2006 Hyperion Solutions Corporation. All rights reserved. Hyperion, the Hyperion H logo, and Hyperion s product

More information

Tapestry. Code less, deliver more. Rayland Jeans

Tapestry. Code less, deliver more. Rayland Jeans Tapestry Code less, deliver more. Rayland Jeans What is Apache Tapestry? Apache Tapestry is an open-source framework designed to create scalable web applications in Java. Tapestry allows developers to

More information

Security Guide. Configuration of Permissions

Security Guide. Configuration of Permissions Guide Configuration of Permissions 1 Content... 2 2 Concepts of the Report Permissions... 3 2.1 Security Mechanisms... 3 2.1.1 Report Locations... 3 2.1.2 Report Permissions... 3 2.2 System Requirements...

More information

Enhydra 6.2 Application Architecture. Tanja Jovanovic

Enhydra 6.2 Application Architecture. Tanja Jovanovic Enhydra 6.2 Application Architecture Tanja Jovanovic Table of Contents 1.Introduction...1 2. The Application Object... 2 3. The Presentation Object... 4 4. Writing Presentation Objects with XMLC... 6 5.

More information

CS 112 Introduction to Programming

CS 112 Introduction to Programming CS 112 Introduction to Programming Web Programming: Backend (server side) Programming with Servlet, JSP Yang (Richard) Yang Computer Science Department Yale University 308A Watson, Phone: 432-6400 Email:

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

Handling Cookies. Agenda

Handling Cookies. Agenda Handling Cookies 1 Agenda Understanding the benefits and drawbacks of cookies Sending outgoing cookies Receiving incoming cookies Tracking repeat visitors Specifying cookie attributes Differentiating between

More information

Web-APIs. Examples Consumer Technology Cross-Domain communication Provider Technology

Web-APIs. Examples Consumer Technology Cross-Domain communication Provider Technology Web-APIs Examples Consumer Technology Cross-Domain communication Provider Technology Applications Blogs and feeds OpenStreetMap Amazon, Ebay, Oxygen, Magento Flickr, YouTube 3 more on next pages http://en.wikipedia.org/wiki/examples_of_representational_state_transfer

More information

Copyright Descriptor Systems, Course materials may not be reproduced in whole or in part without prior written consent of Joel Barnum

Copyright Descriptor Systems, Course materials may not be reproduced in whole or in part without prior written consent of Joel Barnum JEE application servers at version 5 or later include the required JSF libraries so that applications need not configure them in the Web app. Instead of using JSPs for the view, you can use an alternative

More information

Oracle 10g: Build J2EE Applications

Oracle 10g: Build J2EE Applications Oracle University Contact Us: (09) 5494 1551 Oracle 10g: Build J2EE Applications Duration: 5 Days What you will learn Leading companies are tackling the complexity of their application and IT environments

More information

Setting Up the Development Environment

Setting Up the Development Environment CHAPTER 5 Setting Up the Development Environment This chapter tells you how to prepare your development environment for building a ZK Ajax web application. You should follow these steps to set up an environment

More information

WAS: WebSphere Appl Server Admin Rel 6

WAS: WebSphere Appl Server Admin Rel 6 In order to learn which questions have been answered correctly: 1. Print these pages. 2. Answer the questions. 3. Send this assessment with the answers via: a. FAX to (212) 967-3498. Or b. Mail the answers

More information

SmartLink configuration DME Server 3.5

SmartLink configuration DME Server 3.5 SmartLink configuration DME Server 3.5 Document version: 1.3 Date: 2010-03-22 Circulation/Restrictions: Internal/Excitor partners Applies to: DME Server 3.5 Table of contents SmartLink configuration...3

More information

Installing Access Manager Agent for Microsoft SharePoint 2007

Installing Access Manager Agent for Microsoft SharePoint 2007 Installing Access Manager Agent for Microsoft SharePoint 2007 Author: Jeff Nester Sun Microsystems Jeff.Nester@sun.com Date: 7/17/2008 Version 1.0 Description: Paraphrased version of the Sun Java System

More information