Free Essay

Java Server Pages Assignment

In: Computers and Technology

Submitted By anilthakur
Words 2737
Pages 11
Homework – 1
CAP618T: Modern Web Programming Tools and Techniques - I
Max. Marks: 30
Instructions:
i. Each Question is of 5 marks. ii. Do not copy the answers from internet or from other students. iii. All questions are compulsory. iv. Submission should be made online through the upload link available in the UMS.
Q1. What are the various implicit objects available in JSP? Explain each of them with an example.
Ans:
Implicit Objects
In any JSP Page, there are a bunch of implicit objects that are available for the programmer to use. It contains a variety of information that can be used to display stuff on the page. In this chapter, we are going to look at the following JSP Implicit Objects that are available for a programmer.

• request
• response
• out
• session
• config
• application
• page
• pageContext

So, Lets get Started!!!

JSP Implicit Objects

The JSP Implicit objects mentioned in the list in the previous paragraph are available by means of automatically defined variables. These variables have the same name and case as the list above. In the forthcoming paragraphs we will be looking at them one by one.

request

This is the HttpServletRequest instance associated with the client request. As you know, the data between the Servlet and the JSP flows by using the HttpServletRequest and the HttpServletResponse objects. The page receives a request and sends a response. The data sent by a JSP page is available in the request in the Servlet and similarly the data sent by the servlet is available in the JSP again in the request object. There is a surprising amount of information stored in it. For example, you can get the request type (whether it is GET, POST, or HEAD) and the associated cookies. You can extract information from the request object and act on that data.

Let us take a look at a small piece of code that would help us understand how to read data from the request object.
< html >
< body >
< h1 > Inspecting the Request Object < / h1 >
< font size="4" >
Request Method: < % = request.getMethod() % >

Request URI: < % = request.getRequestURI() % >

Request Protocol: < % = request.getProtocol() % >

Servlet path: < % = request.getServletPath() % >

Path info: < % = request.getPathInfo() % >

Path translated: < % = request.getPathTranslated() % >

Query string: < % = request.getQueryString() % >

Content length: < % = request.getContentLength() % >

Content type: < % = request.getContentType() % >

Server name: < % = request.getServerName() % >

Server port: < % = request.getServerPort() % >

Remote user: < % = request.getRemoteUser() % >

Remote address: < % = request.getRemoteAddr() % >

Remote host: < % = request.getRemoteHost() % >

Authorization type: < % = request.getAuthType() % >

Browser type: < % = request.getHeader("User-Agent") % >
< / font >
< / body >
< / html >

If you deploy this JSP on your TomCat server and run it, you will see the details of the request on your web page. This is how the page would look if you run your local instance.

response

This is the HttpServletResponse class that manages the response to the client. You use this object to send data back to the client. For example, among other things, you can add cookies (addCookie), add a specified header (addHeader), and return an error that includes a status and a default message (sendError). You can redirect a browser to another URL with sendRedirect. You can set the content type and the HTTP status (setStatus) as well. For ex: you can set the content type on the response using the below line of code.

response.setContentType("text/html")

The response object doesn't do much. It doesn't have any elaborate functionality like the HttpServletRequest but at the same time, it is not trivial. It still can do a lot of things that would affect the whole J2EE application as such.

Besides manipulating the output buffer (such as, setBufferSize(), flushBuffer(), and getBufferSize()), Sun's public interface ServletResponse defines only the following methods: getLocale(), getOutputStream(), getWriter(), isCommitted(), setContentLength(), setContentType(), and setLocale().

session

This is the HttpSession object associated with the request. We have taken a detailed look at the Session Management in the previous few chapters which are as follows:

1. Introduction to Sessions
2. Storing & Retrieving Session Objects
3. Session Event Listeners
4. Invalidating Sessions
5. Session Tracking Through URL Rewriting

The JSP container handles (creates, tracks, and destroys) sessions automatically. You can use the session attribute of the page directive to turn sessions off. When they are explicitly set to - off, there is no session state available for a JSP page, and any reference to the session variable causes a fatal error.

The primary use of the session variable is to store state information between pages for a given user. A session applies to a single user where you can share information across JSP pages. This differs from the application object, which shares information across all users. The session is on by default, so you don't have to set the "session=true" attribute in the JSP page directive, but it is good practice to make your intentions clear.

The exam objectives only address your understanding of what a session is and how to turn on session tracking for a JSP page. Still, you should at least review the methods and properties of the session object, as they might appear in a test question. They are as follows:

• getAttribute
• getAttributeNames
• getCreationTime
• getId
• getLastAccessedTime
• getMaxInactiveInterval
• invalidate
• isNew
• putValue
• removeAttribute
• setAttribute
• setMaxInactiveInterval

I repeat, the Session Management has been covered in great depth as part of this SCWCD series and you can visit those article to understand the HttpSession, if you havent done already…
Exam Trivia:
Each new session gets its own unique id number. That is how the JSP container keeps track of browsers. The number has to be long enough to eliminate the possibility of session id collision

config

The config implicit object is an instance of the class javax.servlet.ServletConfig. It is usually used in servlets rather than JSP pages. The methods of this object return initialization parameters for the page which are declared in the web.xml file. You define initialization parameters by setting the property when you register a servlet in the web.xml file, the deployment descriptor. The most used methods of this object are getInitParameter and getInitParameterNames.

Though it is used predominantly in servlets, the config object is available in the JSP page as well. Let us take a look at a sample piece of code and see how to use the config object.
< % String DFLT_PARAM_ONE = "first parameter"; String DFLT_PARAM_TWO = "second parameter"; String param_one = config.getInitParameter("first_parameter"); if (param_one == null) { param_one = DFLT_PARAM_ONE; } String param_two = config.getInitParameter("second_parameter"); if (param_two == null) { param_two = DFLT_PARAM_TWO; } % >
< % = "param_one: " + param_one % >
< % = "
" % >
< % = "param_two: " + param_two % >
< % = "< P >" % >

I will leave you to execute this in your JSP page to ponder the output. It would be a good exercise for you to understand these implicit objects…

application

While a session object shares information between JSP pages for a given user, an application object shares information among all users of a currently active J2EE Web application. You can also use this object to communicate with the Servlet Container running the current JSP page. Normally, there is one application object per Java Virtual Machine. So, every JSP page on a Web server shares the same application object (irrespective of how many sessions are running currently).

Q2. How Java beans can be used inside a JSP page? Create a sample application based on Java Beans.
Ans:
Java Beans
Java Beans are reusable components. They are used to separate Business logic from the Presentation logic. Internally, a bean is just an instance of a class. JSP?s provide three basic tags for working with Beans. * <jsp:useBean id=?bean name? class=?bean class? scope = ?page | request | session |application ?/> bean name = the name that refers to the bean.
Bean class = name of the java class that defines the bean. * <jsp:setProperty name = ?id? property = ?someProperty? value = ?someValue? /> id = the name of the bean as specified in the useBean tag. property = name of the property to be passed to the bean. value = value of that particular property .
An variant for this tag is the property attribute can be replaced by an ? * ?. What this does is that it accepts all the form parameters and thus reduces the need for writing multiple setProperty tags. The only consideration is that the form parameter names should be the same as that of the bean property names. * <jsp:getProperty name = ?id? property = ?someProperty? />
Here the property is the name of the property whose value is to be obtained from the bean.
Sample application: class Puppy implements java.io.Serializable
{
private static final long serialVersionUID = 2006L; private String color; private int age;

public String getColor() { return color; }

public void setColor(String color) { this.color = color; }

public int getAge() { return age; }

public void setAge(int age) { this.age = age; }
}
Q3. Design a “Contact Us” JSP page containing fields like Email Address, Subject and message. Explain how this page will get translated into a Servlet and write the corresponding servlet code for this JSP Page.
Q4. Create a web application and perform the following database operations: a. Create a database and write steps for configuring the system DSN.
Ans:
Create a System DSN in Windows XP 1. Click Start, point to Control Panel, double-click Administrative Tools, and then double-click Data Sources(ODBC). 2. Click the System DSN tab, and then click Add. 3. Click the database driver that corresponds with the database type to which you are connecting, and then clickFinish. 4. Type the data source name. Make sure that you choose a name that you can remember. You will need to use this name later. 5. Click Select. 6. Click the correct database, and then click OK. 7. Click OK, and then click OK.

b. Create a table using a class file and execute it from NetBeans.
c. Design a form having text fields as Name, Reg No., City, Mobile No. and store the data into database table.
Q5. Differentiate between translation and request time errors. Create a sample JSP Error page and use this page in another JSP Page.
Ans:
Translation and Compilation
During the translation phase each type of data in a JSP page is treated differently. Static data is transformed into code that will emit the data into the response stream. JSP elements are treated as follows: * Directives are used to control how the web container translates and executes the JSP page. * Scripting elements are inserted into the JSP page’s servlet class. See Chapter 9, Scripting in JSP Pages for details. * Expression language expressions are passed as parameters to calls to the JSP expression evaluator. * jsp:[set|get]Property elements are converted into method calls to JavaBeans components. * jsp:[include|forward]elements are converted into invocations of the Java Servlet API. * The jsp:plugin element is converted into browser-specific markup for activating an applet. * Custom tags are converted into calls to the tag handler that implements the custom tag.
In the Application Server, the source for the servlet created from a JSP page named pageName is in this file: domain-dir/generated/jsp/j2ee-modules/WAR-NAME/pageName_jsp.java For example, the source for the index page (named index.jsp) for the date localization example discussed at the beginning of the chapter would be named: domain-dir/generated/jsp/j2ee-modules/date/index_jsp.java Both the translation and the compilation phases can yield errors that are observed only when the page is requested for the first time. If an error is encountered during either phase, the server will return JasperException and a message that includes the name of the JSP page and the line where the error occurred.
After the page has been translated and compiled, the JSP page’s servlet (for the most part) follows the servlet life cycle described in Servlet Life Cycle: 1. If an instance of the JSP page’s servlet does not exist, the container: a. Loads the JSP page’s servlet class b. Instantiates an instance of the servlet class c. Initializes the servlet instance by calling the jspInit method 2. The container invokes the _jspService method, passing request and response objects.
If the container needs to remove the JSP page’s servlet, it calls the jspDestroy method.
JSP Request Time Errors
The second type of JSP error occurs during request time. These errors are runtime errors that can occur in either the body of the JSP page or in some other object that is called from the body of the JSP page.
Request time errors result in an exception being thrown. These exceptions can be caught and appropriately handled in the body of the calling JSP, which would be the end of the error. Those exceptions that are not caught result in the forwarding of the client request, including the uncaught exception, to the error page specified by the offending JSP. The following sections describe, in detail, how to define and implement JSP error pages.

Handling JSP Page Errors
Any number of exceptions can arise when a JSP page is executed. To specify that the web container should forward control to an error page if an exception occurs, include the following page directive at the beginning of your JSP page:

<%@ page errorPage="file-name" %>
The Duke’s Bookstore application page tut-install/javaeetutorial5/examples/web/bookstore2/web/template/preludeErrorPage.jspf contains the directive:

<%@ page errorPage="errorpage.jsp"%>
The following page directive at the beginning of tut-install/javaeetutorial5/examples/web/bookstore2/web/error/errorpage.jsp indicates that it is serving as an error page:

<%@ page isErrorPage="true" %>
This directive makes an object of type javax.servlet.jsp.ErrorData available to the error page so that you can retrieve, interpret, and possibly display information about the cause of the exception in the error page. You access the error data object in an EL (see Unified Expression Language) expression by way of the page context. Thus, ${pageContext.errorData.statusCode} retrieves the status code, and ${pageContext.errorData.throwable} retrieves the exception. You can retrieve the cause of the exception using this expression:

${pageContext.errorData.throwable.cause}
For example, the error page for Duke’s Bookstore is as follows:

<%@ page isErrorPage="true" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<html>
<head>
<title><fmt:message key="ServerError"/></title>
</head>
<body bgcolor="white">
<h3>
<fmt:message key="ServerError"/>
</h3>
<p>
: ${pageContext.errorData.throwable.cause}
</body>
</html>
Q6. Explain about the requirements of a super-class and a sub-class while implementing Inheritance in JSP. Support the requirements mentioned in the solution by implementing it in a sample Web Application.
Ans:
To recap what you've seen before, classes can be derived from other classes. The derived class (the class that is derived from another class) is called a subclass. The class from which it's derived is called thesuperclass. The following figure illustrates these two types of classes:

In fact, in Java, all classes must be derived from some class. Which leads to the question "Where does it all begin?" The top-most class, the class from which all other classes are derived, is the Object class defined in java.lang. Object is the root of a hierarchy of classes, as illustrated in the following figure.

The subclass inherits state and behavior in the form of variables and methods from its superclass. The subclass can use just the items inherited from its superclass as is, or the subclass can modify or override it. So, as you drop down in the hierarchy, the classes become more and more specialized. sub class is the child of super class and super class is the parent of sub class sub class auto matically having all the properties of sub class and super class itsef, but super class having all the properties of super class only not the sub class properties. super class is the one which will declare members and methods and will allow all the subclasses to make use of them.

sub class is the class which inherits the mebes and methods from the super class and declares it's own members as well.

Similar Documents

Free Essay

Growth Pattern of Outsourcing

...You are to enter all answers or Prtscrn requirements into this Word Document. You are not permitted to submit any other document format, e.g., Wordpad, PDFs, etc. that is not based on this original Word document. This document contains hidden internal markers and applications that will track the version of this assignment and your assignment progress. You MUST submit the assignments using the Word document(s) provided you. You may not use any other word processor, except Microsoft Word. Do not use Open Office DOCX files. When an instructor has possession of an electronic document it is very easy to detect plagiarism. Many instructors use Turnitin assignments, which is applicable to assignments that permit cut-and-paste as this assignment. It is very easy to compare multiple copies of word documents (see link below). Microsoft provides a variety of FREE anti-plagiarizing tools. And there is a wide variety of tools that can analyze hidden information within a Word document (see sample link below). Changing fonts, margins and spacing does not do it anymore. Even when individuals try to artificially change content, a Word document contains hidden markers that may provide an audit trail to find previous authors and computer systems who have edited the document. Comparing and merging Microsoft Word documents - http://support.microsoft.com/kb/306484 Compare documents side by side - http://office.microsoft.com/en-us/word-help/compare-documents-side-by-side-HA010102251...

Words: 6416 - Pages: 26

Free Essay

Rabhasa

...1. (25 pts) Java Application GUI and JDBC Create a Java Application GUI SimpleGUI.java using Netbeans/Eclipse IDE to query author names from the book database (the same database used in the assignments). The Java Application GUI should consist of a JList, a JComboBox, JTextArea, and a JButton. The application will display all the author names of the books in a JTextArea if the book’s copyright year is 2005 or later (the book names are selected by the user in the JList, the copyright year is selected from the drop-down list of the JComboBox). The JDBC code should be in a separate class. The SimpleGUI will call the JDBC functions in the JDBC class. Submit your java application project files and a Microsoft word report with the full screen shots (with the date and time stamps) of the major steps of your GUI program development in Netbeans/Eclipse, and run results. You must test your program with a selection of multiple books. 2. (25 pts) HTML GUI and Servlet Write a HTML5 form SimpleServlet.html and a Java Servlet SimpleServlet.java to query the author names same as in the problem 1. The Servlet should call the JDBC function from a separate JDBC class. Host the Servlet in an external Java Web Server (Don’t run it inside Netbeans/Eclipse IDE.) Submit your SimpleServlet.html and Java Servlet project files and a Microsoft word report with full screen shots (with the date and time stamps) of the major steps of developing and deploying your Servlet program, and run results...

Words: 481 - Pages: 2

Free Essay

With the Development of Technology, More and More Robots Are Used in Various Fields,

...University of Mumbai B.E Information Technology Scheme of Instruction and Evaluation Third Year -Semester VI Scheme of Instructions Sr. Subjects Lect/ No 1 Information and Network Security Middleware and Enterprise Integration Technologies Software Engineering Data Base Technologies Programming for Mobile and Remote Computers Information Technology for Management of Enterprise TOTAL Week 4 Scheme of Examinations Theory T/W Practical Oral Total Hours Marks Marks Marks Marks Marks 3 100 25 -25 150 Pract/ Week 2 Tut/ Week -- 2 4 2 -- 3 100 25 -- 25 150 3 4 5 4 4 4 2 2 2 ---- 3 3 3 100 100 100 25 25 25 --25 25 25 -- 150 150 150 6 4 24 10 1 1 3 -- 100 600 25 150 -25 25 125 150 900 INFORMATION AND NETWORK SECURITY CLASS T.E. ( INFORMATION TECHNOLOGY) HOURS PER LECTURES : WEEK TUTORIALS : PRACTICALS EVALUATION SYSTEM: THEORY PRACTICAL ORAL TERM WORK : SEMESTER VI 04 -02 HOURS 3 ---- MARKS 100 25 25 1. Introduction What is Information Security? Security Goals. 2. Cryptography Crypto Basic, Classic Cryptography, Symmetric Key Cryptography: Stream Ciphers, A5/1, RC4, Block Ciphers, Feistel Cipher, DES, Triple DES, AES, Public Key Cryptography: Kanpsack, RSA, Defiie-Hellman, use of public key crypto- Signature and Non-repudiation, Confidentiality and Non-repudiation, Public Key Infrastructure, Hash Function: The Birthday Problem, MD5, SHA-1, Tiger Hash, Use of Hash Function. 3. Access...

Words: 3868 - Pages: 16

Premium Essay

It- 3rd Year

...E-COMMERCE (TIT-501) UNIT I Introduction What is E-Commerce, Forces behind E-Commerce Industry Framework, Brief history of ECommerce, Inter Organizational E-Commerce Intra Organizational E-Commerce, and Consumer to Business Electronic Commerce, Architectural framework Network Infrastructure for E-Commerce Network Infrastructure for E-Commerce, Market forces behind I Way, Component of I way Access Equipment, Global Information Distribution Network, Broad band Telecommunication. UNIT-II Mobile Commerce Introduction to Mobile Commerce, Mobile Computing Application, Wireless Application Protocols, WAP Technology, Mobile Information Devices, Web Security Introduction to Web security, Firewalls & Transaction Security, Client Server Network, Emerging Client Server Security Threats, firewalls & Network Security. UNIT-III Encryption World Wide Web & Security, Encryption, Transaction security, Secret Key Encryption, Public Key Encryption, Virtual Private Network (VPM), Implementation Management Issues. UNIT - IV Electronic Payments Overview of Electronics payments, Digital Token based Electronics payment System, Smart Cards, Credit Card I Debit Card based EPS, Emerging financial Instruments, Home Banking, Online Banking. UNIT-V Net Commerce EDA, EDI Application in Business, Legal requirement in E -Commerce, Introduction to supply Chain Management, CRM, issues in Customer Relationship Management. References: 1. Greenstein and Feinman, “E-Commerce”, TMH 2. Ravi Kalakota, Andrew Whinston...

Words: 2913 - Pages: 12

Premium Essay

Java

...JMaster list of Java interview questions - 115 questions By admin | July 18, 2005 115 questions total, not for the weak. Covers everything from basics to JDBC connectivity, AWT and JSP. 1. What is the difference between procedural and object-oriented programs?- a) In procedural program, programming logic follows certain procedures and the instructions are executed one after another. In OOP program, unit of program is object, which is nothing but combination of data and code. b) In procedural program, data is exposed to the whole program whereas in OOPs program, it is accessible with in the object and which in turn assures the security of the code. 2. What are Encapsulation, Inheritance and Polymorphism?- Encapsulation is the mechanism that binds together code and data it manipulates and keeps both safe from outside interference and misuse. Inheritance is the process by which one object acquires the properties of another object. Polymorphism is the feature that allows one interface to be used for general class actions. 3. What is the difference between Assignment and Initialization?- Assignment can be done as many times as desired whereas initialization can be done only once. 4. What is OOPs?- Object oriented programming organizes a program around its data, i. e. , objects and a set of well defined interfaces to that data. An object-oriented program can be characterized as data controlling 5. access to code. What are Class, Constructor...

Words: 6762 - Pages: 28

Free Essay

Unit 1 and Part of 2

...program into a separate machine language program. An INTERPRETER is a program that both translates and executes the instructions in a high-level language program 7. What type of software controls the internal operations of the computer’s hardware? OS’s Unit 1 Research Assignment 1. SQL It’s no surprise SQL (pronounced ‘sequel’) tops the job list since it can be found far and wide in various flavors. Database technologies such as MySQL, PostgreSQL and Microsoft SQL Server power big businesses, small businesses, hospitals, banks, universities. Indeed, just about every computer and person with access to technology eventually touches something SQL. For instance, all Android phones and iPhones have access to a SQL database called SQLite and many mobile apps developed Google, Skype and DropBox use it directly. 2. Java The tech community recently celebrated the 20th anniversary of Java. It’s one of the most widely adopted programming languages, used by some 9 million developers and running on 7 billion devices worldwide. It’s also the programming language used to develop all native Android apps. Java’s popularity with developers is due to the fact that the language is grounded in readability and simplicity. Java has staying power since it...

Words: 1008 - Pages: 5

Premium Essay

Nt1310 Unit 3 Assignment

...NAME: NGUYỄN TÚ NGUYÊN ID: ITITIU13142 ASSIGNMENT 1 1 REQUIREMENT • Refer to the section 2.7. ”Socket programming” in the book given at pages 165-167. • Understand, run, and explain the programs TCPclient.py and TCPserver.py (or TCPclient.java and TCPserver.java) 2 CODE 2.1 TCP CLIENT package tcp; import java.io.*; import java.net.*; public class tcpclient { public static void main(String argv[]) throws IOException { Socket c = new Socket("localhost", 1342); BufferedReader inuser = new BufferedReader(new InputStreamReader(System.in)); DataOutputStream outser = new DataOutputStream(c.getOutputStream()); BufferedReader inser = new BufferedReader(new InputStreamReader(c.getInputStream())); System.out.println("Send:...

Words: 1181 - Pages: 5

Free Essay

Forex Analyst

...Scripting, logic, Functional, object oriented and Markup. Our survey work involves a comparative study of these six programming languages with respect to the above programming paradigm using the following criteria: secure programming practices, web application development, OOP-based abstractions, reflection, Reusability, Portability, Reliability, Readability, Availability of compilers and tools, Familiarity, Expressiveness We study these languages in the context of the above mentioned criteria and the level of support they provide for each one of them. TABLE OF CONTENT 1. OVERVIEW OF PROGRAMMING LANGUAGE PARADIGMS 1.1 INTRODUCTION 1.2 CRITERIA OF LANGUAGE COMPARISON 2. IMPERATIVE LANGUAGES 2.1 Imperative Paradigm 2.1.2 Java as an Imperative Paradigm 2.1.3 Criteria 3. SCRIPTING LANGUAGES 3.1 Scripting Paradigm 3.2 Php as an Scripting Paradigm 3.3 Criteria 4. FUNCTIONAL LANGUAGES 4.1 Functional Paradigm 3.2 Php as an Scripting Paradigm 3.3 Criteria 5.1 LOGIC LANGUAGES 5.1.1 Readability 5.1.2 Ease of Learning 5.1.3 Ease of Maintenance 5.1.4 Extensibility 5.1.5 Pedagogy 5.1.6 Portability 6.1 OBJECT ORIENTED LANGUAGES (OOL) 6.1.1 Readability 6.1.2 Ease of Learning 6.1.3 Ease of Maintenance 6.1.4 Extensibility 6.1.5 Pedagogy 6.1.6 Portability 7.1 MARKUP LANGUAGES 7.1.1 Readability 7.1.2 Ease of Learning 7.1 REFERENCES LIST OF FIGURES CHAPTER ONE 1.1 INTRODUCTION Choosing the best language that would satisfy all requirements for the given problem...

Words: 4013 - Pages: 17

Premium Essay

Wdwdwdwdwdwdwdwdwd

...Your assignment is to create and post a new web site for this class. You will need Kompozer or any other software to create a website on your desktop computer and then publish it to the public Web. You can find detailed requirements and instructions later.  When you are done with the assignment, submit the URL of the completed web page through the Submission text box below. Requirements: Your web site must contain, at the very least, the following:
· A homepage called index.html. · A second web page that contains some kind of substantive content (approximately half a page to a page) of your choice. The index page should have: 1. a title (which is visible at the top of the web browser when your page is viewed), 2. some kind of greeting or heading (for instance, ‘Welcome to my home on the Web’, or ‘Greetings from Pat’s Virtual World’), 3. at least one paragraph of content (text), 4. at least one image file, 5. at least one link to outside content, and 6. a hyperlink that links to your content page (e.g. your second webpage described below). 7. the phrase "nyuinfotech2013" somewhere on the site.
What you put on the second page is completely up to you. It could be a personal history, a tribute to your favorite band, a description of your favorite place in New York, an analysis of the main revenue streams for the national economy of Tuvalu, or anything else along these lines. While we actively encourage you to devote some time to adding interesting content, this is not...

Words: 839 - Pages: 4

Free Essay

Mc2560 Unit 7 Assignment 1 Mobile Application

...David Lewandowski Mobile Communication Devices Unit 7 Assignment 1 Mobile Application A Static Web Application is any web application that can be delivered directly to an end user’s browser without any server side alteration of the HTM, JavaScript or CSS content. Static web applications generally refer to rich sites that utilize technologies in the browser instead of on the server to deliver dynamic content. The primary difference is that a traditional web app, the server is the one responsible for fetching the data and compiling it all into the HTML that the user then can see, while the static web application, the browser is responsible for doing that. Static Web Application: 1. The user agents browser sends a request to a static web server at a specified address 2. The Server receives the network request and maps the address to “barebones’ HTML file is stored on the server 3. The server sends the HTML file to the user agent, which will then render it and display it to the user 4. The JavaScript in the HTML pages uses the browser to connect to the data services and then fetches the information it needs to construct the content of the page you are on 5. The JavaScript in the web page, takes the data and manipulates the HTML of the page, updating it with the data the it fetched (Step 4) Advantage of Static Web Application: * Cheaper to Build * Quick to Build * Easier for Search Engines to Index * Quicker Load Times Disadvantages...

Words: 421 - Pages: 2

Free Essay

Technology

...Jan Graba An Introduction to Network Programming with Java Java 7 Compatible Third Edition An Introduction to Network Programming with Java Jan Graba An Introduction to Network Programming with Java Java 7 Compatible Third Edition Jan Graba Department of Computing Sheffield Hallam University Sheffield, South Yorkshire, UK Additional material to this book can be downloaded from http://extras.springer.com. ISBN 978-1-4471-5253-8 ISBN 978-1-4471-5254-5 (eBook) DOI 10.1007/978-1-4471-5254-5 Springer London Heidelberg New York Dordrecht Library of Congress Control Number: 2013946037 1st edition: © Addison-Wesley 2003 © Springer-Verlag London 2006, 2013 This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed. Exempted from this legal reservation are brief excerpts in connection with reviews or scholarly analysis or material supplied specifically for the purpose of being entered and executed on a computer system, for exclusive use by the purchaser of the work. Duplication of this publication or parts thereof is permitted only under the provisions...

Words: 14996 - Pages: 60

Free Essay

Step-by-Step Install Guide Liferay Portal Enterprise on Linux V1.0

...globalopenversity.org Table of Contents Page No. STEP-BY-STEP INSTALL GUIDE LIFERAY PORTAL ENTERPRISE ON LINUX Part 1: Install JDK6 Part 2: Quick Liferay Portal Installation with Default HSQL Database Part 3: Install MySQL Database for Liferay Enterprise Step 1: Install and configure MySQL Database Server Part 4: Install Liferay for an Enterprise Step 1: Remove Default Bundled Sample Data Step 2: Create Portal.Ext.Properties File Part 5: Need More Training 2 3 4 6 6 7 8 8 11 © A GOV Open Knowledge Access Technical Academic Publications License Enhancing education & empowering people worldwide through eLearning in the 21st Century © April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada 1 www.globalopenversity.org ICT202 - Linux Enterprise Infrastructure Engineering Diploma Global Open Versity Labs Step-by-Step Install Guide Enterprise Liferay Portal v1.0 Global Open Versity IT Systems Integration Hands-on Labs Training Manual Step-by-Step Install Guide Liferay Portal Enterprise on Linux By Kefa Rabah, krabah@globalopenversity.org Feb 09, 2010 SerengetiSys Labs Project: your company – an enterprise business concern recently is deploying a new network infrastructure and they would like to include web portal to be used by their staff members and business partners – for this they have opted to go for Liferay Portal. Liferay Portal is the world's leading enterprise open source portal framework using the latest in Java and Web 2.0 technologies. It offers integrated...

Words: 3512 - Pages: 15

Premium Essay

Application.Servers.for.E-Business

...Application Servers for E-Business Table of Contents Application Servers for E-Business - 2 Preface - 4 Chapter 1 - Introduction - 5 Chapter 2 - A Survey of Web Technologies - 22 Chapter 3 - Java - 44 Chapter 4 - CORBA - 65 Chapter 5 - Application Servers - 82 Chapter 6 - Design Issues for Enterprise Deployment of Application Servers - 114 Chapter 7 - Tying It All Together - 137 References - 160 For More Information - 163 page 1 Application Servers for E-Business Application Servers for E-Business Lisa M. Lindgren Auerbach Library of Congress Cataloging-in-Publication Data Lindgren, Lisa. Application servers for e-business / Lisa M. Lindgren. p.cm. Includes bibliographical references and index. ISBN 0-8493-0827-5 (alk. paper) 1. Electronic commerce. 2. Application software—Development. I. Title. HF5548.32 .L557 2001 658′.0553–dc21 00-050245 This book contains information obtained from authentic and highly regarded sources. Reprinted material is quoted with permission, and sources are indicated. A wide variety of references are listed. Reasonable efforts have been made to publish reliable data and information, but the author and the publisher cannot assume responsibility for the validity of all materials or for the consequences of their use. Neither this book nor any part may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, microfilming, and recording, or by any information storage or retrieval system,...

Words: 98260 - Pages: 394

Free Essay

Research Oon Wcm

....... 2 I. Introduction..................................................................................................................... 3 What is a Web Content Management System? ............................................................... 3 Impact and Business Trends with WCMS ...................................................................... 5 The Common Components of WCMS............................................................................ 6 II. Security Concerns and Precautionary Measures ............................................................ 8 III. Conclusion.................................................................................................................. 11 Web Content Management System Page 1 of 11 SUMMARY A Web Content Management System (WCMS) is a web application that facilitates a group of users, usually from different departments in an enterprise, to collaboratively maintain and organise the content of a website in an effective manner. Over the past few years, web content management systems have grown in importance as more and more organisations...

Words: 2233 - Pages: 9

Premium Essay

Inventory System

...INVENTORY MANAGEMENT SYSTEM Arina Ramlee arina@cs.washington.edu David Henry davidvh@cs.washington.edu Bruce Chhay chhayb@cs.washington.edu April 4, 2006 CSE 403 Assignment 1 – LCO Abstract This paper describes the Inventory Management System sufficiently to determine the feasibility and usability of a finished system. The core concept is to track the sale of items from the cash registers with additional features for interpreting the data. It uses a client-server model with a connected database to allow multiple stores and warehouses to be connected. This allows for later expansion while still supporting the targeted small businesses. The core features and final framework should be completed within 2 weeks, leaving 5 weeks to implement additional features and testing. 1. Operational Concepts The Inventory Management System is a real-time inventory database capable of connecting multiple stores. This can be used to track the inventory of a single store, or to manage the distribution of stock between several branches of a larger franchise. However, the system merely records sales and restocking data and provides notification of low stock at any location through email at a specified interval. The goal is to reduce the strain of tracking rather than to handle all store maintenance. Further features may include the ability to generate reports of sales, but again the interpretation is left to the management. In addition, since theft...

Words: 1417 - Pages: 6