E-Nature Tutorial for Google Web Toolkit. Dominik Erbsland

Size: px
Start display at page:

Download "E-Nature Tutorial for Google Web Toolkit. Dominik Erbsland"

Transcription

1 E-Nature Tutorial for Google Web Toolkit Dominik Erbsland Version 0.1 November 2, 2006

2 Contents 1 Preface Why this tutorial Creating A Project How to create a GWT project Step-By-Step History Support How to use it JUnit Creating the JUnit les Internationalization How to use it Photo Gallery 8 7 Remote Procedure Calls with Servlets Installing Apache Tomcat Use RPC in the GWT Project Run The Project With Tomcat Appendix 14 i

3 List of Figures 4.1 Project le structure with the test folder Project le structure in the webapps folder of Tomcat The server delivered the current time to the client ii

4 1 Preface 1.1 Why this tutorial I have to say that I made this tutorial for egoistic reasons. The school I am attending will soon be nished and I have to work on my degree dissertation. The main focus of the school I visit is software development with Java. Since I didn't want to make a "`plain"' Java application I was looking for something extraordinary. It didn't take long and I heard of the GWT 1 which immediately drew my attention. This framework allows me to create Ajax web applications written in pure Java. I always wanted to learn Ajax but didn't have the time because school was eating up all my free time. To me GWT is the perfect solution. I can make Ajax applications programmed with Java only (at least almost) and don't have to learn in depth JavaScript. The real reason why I make this tutorial is to be quicker when I work on the defree dissertation (which I want to make with GWT). Since ocial help les of frameworks usually are dicult to understand and take much time to understand. I dediced to note everything I learn with GWT in this tutorial in a way everybody can understand. I go through all steps which are needed to include a element to a GWT project. Hopefully this tutoral will be as much as a helpful tool for you as it will be for me. I am always open for suggestions or additions. So feel free to contact me by . 1 Google Web Toolkit 1

5 2 Creating A Project Here you will nd a step-by-step tutorial how to create an empty GWT project to start working with. Actually it's quite simple and doesn't really need much knowledge. I assume that you have Eclipse 1 already installed and know how it works. Furthermore I assume that you are working with Windows XP. If you use any other OS I cannot guarantee that my tutorials will be working. Prerequisites Windows XP Eclipse IDE Java SDK (I am currently using JDK 1.5.0) 2.1 How to create a GWT project Step-By-Step Go to Accept the terms and conditions. Download the newest version (in my case it was Version (Beta)). Unzip the le and move everything to a developer directory. I moved the les to E:/Development/GWT/gwt-windows for example. Click on Start > Run... > Enter cmd and press enter. Change the directory to the directory where you moved all the les you just downloaded from the Google website. To create a new project with the name Examples you type in this: applicationcreator com.mycompany.client.myapplication After you pressed enter the applicationcreator script generated some les. Now enter this: projectcreator -eclipse Examples The script will create even more les. If you wonder where those les are located then just open the Explorer and go to the directory where you moved the GWT les to. (Again, in my case it is E:/Development/GWT/gwt-windows )

6 2 Creating A Project The script created all these les and folders: src (folder) Examples-compile.cmd Examples-shell.cmd test (folder).classpath.project Now create a new project directory in your Eclipse workspace direcotry. created a subdir called "`Examples"'. I Open Eclipse and create a new Java project. Enter the name "`Examples"' (if your project is called like this, too) Click on "`Finish"' to nally create the project. We have to add two GWT JAR les to the classpath before we can start working with the project. Right mouse click the project in Eclipse and select "`Properties"'. Go to "`Java Build Path"' and click the button "`Add External JARs"'. Select "`gwt-user.jar"' and "`gwt-dev-windows.jar"' and click the "`Open"' button. (We do not currently need "`gwt-dev-windows.jar"' - but it's needed if we want to do JUnit tests) The package structure in the project is a bit scrambled in the beginning. To x that right mouse click the project and select "`New"' > "`Source Folder"'. Create a new folder named "`src"' and click the "`Finish"' button. Well that's about it. Your empty GWT project is now prepared and ready to be modied! 3

7 3 History Support With GWT you can make hyperlinks as easily as you make them with HTML. If you click on a hyperlinks in a GWT application your browser cannot go back a page since you won't be changing the actual HTML site but just some parts of the same page. But with the "`Hyperlink"' class you can make it possible for the browser to go back to the last pages your visitors saw. 3.1 How to use it You can easily make hyperlinks with GWT by creating an object of the Hyperlink class. The hyperlink object behaves like a normal hyperlink you know from HTML. The only problem with a GWT hyperlink is that if you click it you simple create new widgets and remain on the very same HTML page you were before. Like this you will not be able to go back with the "`Back"' button of your web browser. If you want to make it possible for visitors to go back a page with the webbrowser you simply pass a second parameter when creating the hyperlink object. Creating such objects will look like this in your Java code: 1 final Hyperlink newslink = new Hyperlink("News", "news"); 2 final Hyperlink biolink = new Hyperlink("Biography", "bio"); 3 final Hyperlink picslink = new Hyperlink("Picture Gallery", "pics"); 4 final Hyperlink gblink = new Hyperlink("Guestbook", "gb"); 5 final Hyperlink contactlink = new Hyperlink("Contact Form", "contact"); As you can see I created dierent hyperlink objects. If you instantiate the Hyperlink object with just one parameter there will be no going back with the "`Back"' button in your browser. To enable this option all you have to do is to use a second parameter. The second parameter will be added behind the URL in the browser if you click on the link. For example: if you are on and click on the link "`Picture Gallery"' the URL in the browser will change like this: 1 4

8 4 JUnit JUnit is a framework which lets you test your Java classes and methods. You can easily check all the methods in your projects whether they are working or not. 4.1 Creating the JUnit les Thw GWT delivers a bunch of BAT les which automatically create all les you need to use JUnit. Follow the step-by-step instructions to create the JUnit les which are needed in order to actually use JUnit: Make sure your classpath includes: gwt-user.jar gwt-dev-windows.jar (or gwt-dev-linux.jar) junit.jar Open the command prompt (click Start, Run..., CMD) A black window opens. Now change the directory to where you have the GWT les installed (like applicationcreator.cmd, gwt-user.jar, junitcreator.cmd etc.) In my case it's: E:/Development/GWT/gwt-windows Enter following command: 1 junitcreator -junit /opt/eclipse/plugins/org.junit_3.8.1/junit.jar 2 -module ch.enature.examples 3 -eclipse Examples ch.enature.client.examplestest Of course you have to replace ch.enature.examples with the path and name of your own GWT project. Same goes with ch.enature.client.examplestest. ExamplesTest will be the JUnit class name which the bat le creates. junitcreator will now create a folder test, and these les: ExamplesTesthosted.cmd, ExamplesTest-hosted.launch, ExamplesTest-web.cmd, ExamplesTestweb.launch into the same directory where the bat le is located. 5

9 4 JUnit Move the test folder and the four les to your GWT project. The project structure will look like this afterwards: Figure 4.1: Project le structure with the test folder Open ExamplesText.java in the folder test in your project. You will nd an almost empty class. We now have to ll this class with tests. 6

10 5 Internationalization With GWT you can make your website multilingual. Allowing people from around the world to read your web page in their own language (as long as you are able to translate your website to their respective languages). GWT supports a variety of ways of internationalizing your code. In this tutorial you will learn how to use this feature with the use of the interface "`Messages"' 1. Google describes the interface as: 1 A tag interface that facilitates locale-sensitive, compile-time binding of messages supplied from properties files. This method is useful if you have static text-blocks on your website you wish to make multilingual. Those might be buttons, titles, subtitles or short static texts. Note: You will not be able to translate text from a database with this procedure. 5.1 How to use it 1 More information about "`Messages"' on the Google website: webtoolkit/documentation/com.google.gwt.i18n.client.messages.html 7

11 6 Photo Gallery a photo gallery tutorial is coming soon! 8

12 7 Remote Procedure Calls with Servlets A fundamental dierence between GWT applications and traditional HTML web applications is that GWT applications do not need to fetch new HTML pages while they execute. Because GWT-enhanced pages actually run more like applications within the browser, there is no need to request new HTML from the server to make user interface updates. However, like all client/server applications, GWT applications usually do need to fetch data from the server as they execute. The mechanism for interacting with a server across a network is called making a remote procedure call (RPC), also sometimes referred to as a server call. GWT RPC makes it easy for the client and server to pass Java objects back and forth over HTTP. When used properly, RPCs give you the opportunity to move all of your UI logic to the client, resulting in greatly improved performance, reduced bandwidth, reduced web server load, and a pleasantly uid user experience. 1 Unfortunately the Google documentation fails to explain how to actually use RPC on a webserver with Tomcat. Nevertheless it is quite easy I needed many weeks until I nally could make it work. Thanks to Andrew Zhang at this point who gave me the tip I needed to make it work. In this tutorial I will show how to make RPC work plus you also can see how to get data from a remote database on a server and display it in the browser. 7.1 Installing Apache Tomcat Before you can actually work with RPC you have to install a copy of Apache Tomcat 2 on your computer. Tomcat implements the servlet and the JavaServer Pages (JSP) specications from Sun Microsystems, providing an environment for Java code to run in cooperation with a web server. For your and my convenience I suggest you install XAMPP which is an all-in-one solution with a pre-congured webserver, mysql database and Tomcat as a plugin. I won't go into detail how to install this since it's pretty straight forward. Just visit and download the newest version of XAMPP plus the Tomcat plugin. 1 Source:

13 7 Remote Procedure Calls with Servlets 7.2 Use RPC in the GWT Project OK let's get started right away. I assume that you have already created a GWT project with Eclipse. In this example we will do a remote procedure call and let the server send us back the current time. Create an interface in the client package of your application named RPCService.java. Copy and paste the content of listing 7.1 into the interface. Listing 7.1: RPCService 1 public interface RPCService extends RemoteService { 2 String gettime(); 3 } We now have to create another interface which has the same le name like the rst interface. Just add Async at the end of the le name. The whole le name will be RPCServiceAsync.java. GWT will throw an exception if the async version of the rst interface hasn't been created. Add following code to the interface: Listing 7.2: RPCServiceAsync 1 public interface RPCServiceAsync { 2 void gettime(asynccallback callback); 3 } As you might have noticed the return type of the method is void. In the asyncinterface all methods always have to be void. You have to live with it, it's just like that. If you haven't already created the server package in your project then do this now. In my case it is called ch.enature.server. Now we need to implement the gettime service. The RPCService interface will be implemented as server-side code. Create a new le in the ch.enature.server package called RPCServiceImpl.java and add this code: Listing 7.3: RPCServiceImpl 1 public class RPCServiceImpl extends RemoteServiceServlet implements 2 RPCService { 3 public String gettime() { 4 DateFormat format = new java.text.simpledateformat("yyyy-mmdd hh:mm:ss"); 5 Date currenttime = new Date(); 6 return format.format(currenttime); 7 } 8 } So far so good, now we just have to make an actual call. For this we just modify the service entry point code in our project. Add the following code to your onmoduleload() method: 10

14 7 Remote Procedure Calls with Servlets Listing 7.4: onmoduleload 1 final RPCServiceAsync rpcservice = initiailizeserviceentrypoint(); 2 final Label label = new Label(); 3 final Button rpcbutton = new Button("RPC Button"); 4 5 rpcbutton.addclicklistener(new ClickListener() { 6 public void onclick(widget sender) { 7 rpcservice.getrpc(new AsyncCallback() { 8 public void onfailure(throwable caught) { 9 label.settext("failure:" + caught.getmessage()); 10 } public void onsuccess(object result) { 13 label.settext("current RPC = " + (String) result); 14 } 15 }); 16 } 17 }); Don't forget to map the rpcbutton element to an element in Examples.html. Listing 7.5: onmoduleload 1 RootPanel.get("slot3").add(rpcButton); In the same class we have to create a new method called initiailizeserviceentrypoint(). The code snippet looks like this: Listing 7.6: initiailizeserviceentrypoint 1 private final RPCServiceAsync initiailizeserviceentrypoint() { 2 RPCServiceAsync rpcservice = (RPCServiceAsync) GWT 3.create(RPCService.class); 4 ServiceDefTarget target = (ServiceDefTarget) rpcservice; 5 String staticresponseurl = GWT.getModuleBaseURL(); 6 staticresponseurl += "/rpcservice"; 7 target.setserviceentrypoint(staticresponseurl); 8 return rpcservice; 9 } For your better understanding I put the whole main class in the appendix in listing 8.1 of this document. Click Examples-compile.cmd to compile the whole project in web-mode. Note: If you want to execute RPCs in hosted mode, you have to replace this code: 1 staticresponseurl += "/rpcservice"; with this code: 1 staticresponseurl += "/"; EINSCHUB: TEIL MIT MYSQL NOCH SCHREIBEN (BRAUCHT EINTRAG VOM PFAD ZUM.JAR FILE IM EXAMPLES-SHELL.CMD UND...COMPILE.CMD) 11

15 7 Remote Procedure Calls with Servlets 7.3 Run The Project With Tomcat We have now added all the neccessary interfaces the implementation of it and created a button which executes a remote procedure call. In order to test if RPC really works we have to copy the project to the Tomcat webapps directory. In my case the webapps directory is here: C:/Program Files/xampp/tomcat/webapps In real life you will also need a Tomcat server to make your GWT application run. Tomcat has to be installed on the webserver and your project has to be in the subfolder webapps'. As mentioned above Tomcat can run server side Java classes. With it you can communicate between a client and the server. Create a folder Examples in the webapps directory. Create a subfolder WEB-INF in Examples. Create the folders classes and lib in WEB-INF. Create a new le web.xml in the folder WEB-INF which contains this body: Listing 7.7: web.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <!DOCTYPE web-app 3 PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" 4 " 5 <web-app> 6 <servlet> 7 <servlet-name>rpcserviceimpl</servlet-name> 8 <servlet-class>ch.enature.server.rpcserviceimpl</ servlet-class> 9 </servlet> <servlet-mapping> 12 <servlet-name>rpcserviceimpl</servlet-name> 13 <url-pattern>/rpcservice</url-pattern> 14 </servlet-mapping> </web-app> Copy gwt-servlet.jar to WEB-INF/lib. Copy 1:1 all les and folders in the bin folder of your GWT application to WEB-INF/classes. 12

16 7 Remote Procedure Calls with Servlets Copy all les and folders ind Examples/www/ch.enature.Examples to the Tomcat subdirectory webapps/examples/. The le structure has to look like this: Figure 7.1: Project le structure in the webapps folder of Tomcat Start the Tomcat server. Go to You will see a link Examples which leads you to the GWT project you just created in webapps. Click the hyperlink. Click on Examples.html. Et voilà, there it is! Click the button to check if the RPC call can be executed. If you did everything correctly your result will look similar like on this screenshot: Figure 7.2: The server delivered the current time to the client 13

17 8 Appendix Listing 8.1: Examples.java 1 /** 2 * Entry point classes define <code>onmoduleload()</code>. 3 */ 4 public class Examples implements EntryPoint { 5 6 /** 7 * This is the entry point method. 8 */ 9 public void onmoduleload() { 10 final RPCServiceAsync rpcservice = initiailizeserviceentrypoint() ; 11 final Label label = new Label(); 12 final Button rpcbutton = new Button("RPC Button"); rpcbutton.addclicklistener(new ClickListener() { 15 public void onclick(widget sender) { 16 rpcservice.getrpc(new AsyncCallback() { 17 public void onfailure(throwable caught) { 18 label.settext("failure:" + caught.getmessage()); 19 } public void onsuccess(object result) { 22 label.settext("current RPC = " + (String) result) ; 23 } 24 }); 25 } 26 }); RootPanel.get("slot2").add(label); 29 RootPanel.get("slot3").add(rpcButton); 30 } private final RPCServiceAsync initiailizeserviceentrypoint() { 33 RPCServiceAsync rpcservice = (RPCServiceAsync) GWT.create( RPCService.class); 34 ServiceDefTarget target = (ServiceDefTarget) rpcservice; 35 String staticresponseurl = GWT.getModuleBaseURL(); 36 staticresponseurl += "/rpcservice"; 37 target.setserviceentrypoint(staticresponseurl); 38 return rpcservice; 39 } 40 } 14

18 List of Figures 15

19 List of Tables 16

20 Bibliography 17

Say goodbye to the pains of Ajax. Yibo

Say goodbye to the pains of Ajax. Yibo Say goodbye to the pains of Ajax Yibo DOM JavaScript XML CSS Standard Browsers: browser-specific dependencies. d Differences Complexity Exprerience: Minesweeper Google Web Toolkit make Ajax development

More information

Google Web Toolkit (GWT) Basics. Sang Shin Java Technology Architect & Evangelist Sun Microsystems, Inc.

Google Web Toolkit (GWT) Basics. Sang Shin Java Technology Architect & Evangelist Sun Microsystems, Inc. Google Web Toolkit (GWT) Basics Sang Shin Java Technology Architect & Evangelist Sun Microsystems, Inc. sang.shin@sun.com www.javapassion.com Disclaimer & Acknowledgments Even though Sang Shin is a full-time

More information

Google Web Toolkit (GWT)

Google Web Toolkit (GWT) Google Web Toolkit (GWT) St. Louis Java SIG April 12, 2007 Brad Busch Andrew Prunicki What is GWT? GWT is a much different way to develop web applications from

More information

GWT - RPC COMMUNICATION

GWT - RPC COMMUNICATION GWT - RPC COMMUNICATION http://www.tutorialspoint.com/gwt/gwt_rpc_communication.htm Copyright tutorialspoint.com A GWT based application is generally consists of a client side module and server side module.

More information

Pimp My Webapp (with Google Web Toolkit)

Pimp My Webapp (with Google Web Toolkit) (with Google Web Toolkit) Hermod Opstvedt Chief Architect DnB NOR ITUD Common components Hermod Opstvedt (with Google Web Toolkit) Slide 1 What is Google Web Toolkit (GWT)? Pronounced GWiT. An effort to

More information

Google Web Toolkit (GWT)

Google Web Toolkit (GWT) Google Web Toolkit (GWT) What is GWT? GWT is a development toolkit for building and optimizing complex browser-based applications You can develop all code, both client and server in Java (or with a different

More information

GWT in Action by Robert Hanson and Adam Tacy

GWT in Action by Robert Hanson and Adam Tacy SAMPLE CHAPTER GWT in Action by Robert Hanson and Adam Tacy Chapter 2 Copyright 2007 Manning Publications brief contents PART 1 GETTING STARTED...1 1 Introducing GWT 3 2 Creating the default application

More information

Google Web Toolkit Creating/using external JAR files

Google Web Toolkit Creating/using external JAR files Google Web Toolkit Creating/using external JAR files If you develop some code that can be reused in more than one project, one way to create a module is to create an external JAR file. This JAR file can

More information

Developing Ajax Web Apps with GWT. Session I

Developing Ajax Web Apps with GWT. Session I Developing Ajax Web Apps with GWT Session I Contents Introduction Traditional Web RIAs Emergence of Ajax Ajax ( GWT ) Google Web Toolkit Installing and Setting up GWT in Eclipse The Project Structure Running

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

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

Google Web Toolkit for quick relief of AJAX pain. Kelly Norton & Miguel Méndez

Google Web Toolkit for quick relief of AJAX pain. Kelly Norton & Miguel Méndez Google Web Toolkit for quick relief of AJAX pain. Kelly Norton & Miguel Méndez Overview the pleasure of using AJAX apps. the pain of creating them. getting some pain relief with GWT. the tutorial part.

More information

Google Web Toolkit. David Geary. code.google.com/webtoolkit. corewebdeveloper.com

Google Web Toolkit. David Geary. code.google.com/webtoolkit. corewebdeveloper.com Google Web Toolkit code.google.com/webtoolkit David Geary corewebdeveloper.com clarity.training@gmail.com Copyright Clarity Training, Inc. 2009 Code http://coolandusefulgwt.com 2 Copyright Clarity Training,

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

Taming AJAX with GWT. Scott Blum. Scott Blum Taming AJAX with GWT Page 1

Taming AJAX with GWT. Scott Blum. Scott Blum Taming AJAX with GWT Page 1 Taming AJAX with GWT Scott Blum Scott Blum Taming AJAX with GWT Page 1 Overview Why AJAX? Why GWT? How GWT Works Add GWT to your App Advanced Techniques Summary Q & A Scott Blum Taming AJAX with GWT Page

More information

The Google Web Toolkit

The Google Web Toolkit The Google Web Toolkit Allen I. Holub Holub Associates www.holub.com allen@holub.com 2010, Allen I. Holub www.holub.com 1 This Talk The point of this talk is to give you an overview of GWT suitable for

More information

GWT. Building Enterprise Google Web Toolkit Applications. Accelerated

GWT. Building Enterprise Google Web Toolkit Applications. Accelerated The EXPERT s VOIce in Web Development Accelerated GWT Building Enterprise Google Web Toolkit Applications Write high-performance Ajax applications using Google Web Toolkit (GWT) to generate optimized JavaScript

More information

LSI's VMware vcenter Plug-In: A Study in the Use of Open Source Software Erik Johannes Brian Mason LSI Corp

LSI's VMware vcenter Plug-In: A Study in the Use of Open Source Software Erik Johannes Brian Mason LSI Corp LSI's VMware vcenter Plug-In: A Study in the Use of Open Source Software Erik Johannes Brian Mason LSI Corp Goal The goal for the presentation is to share our experience with open source in the hope that

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

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

Using Flex 3 in a Flex 4 World *

Using Flex 3 in a Flex 4 World * OpenStax-CNX module: m34631 1 Using Flex 3 in a Flex 4 World * R.G. (Dick) Baldwin This work is produced by OpenStax-CNX and licensed under the Creative Commons Attribution License 3.0 Abstract Learn how

More information

EUSurvey OSS Installation Guide

EUSurvey OSS Installation Guide Prerequisites... 2 Tools... 2 Java 7 SDK... 2 MySQL 5.6 DB and Client (Workbench)... 4 Tomcat 7... 8 Spring Tool Suite... 11 Knowledge... 12 Control System Services... 12 Prepare the Database... 14 Create

More information

A Model-Controller Interface for Struts-Based Web Applications

A Model-Controller Interface for Struts-Based Web Applications A Model-Controller Interface for Struts-Based Web Applications A Writing Project Presented to The Faculty of the Department of Computer Science San José State University In Partial Fulfillment of the Requirements

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

RadBlue s S2S Quick Start Package (RQS) Developer s Guide. Version 0.1

RadBlue s S2S Quick Start Package (RQS) Developer s Guide. Version 0.1 RadBlue s S2S Quick Start Package (RQS) Developer s Guide Version 0.1 www.radblue.com April 17, 2007 Trademarks and Copyright Copyright 2007 Radical Blue Gaming, Inc. (RadBlue). All rights reserved. All

More information

Purpose. Why use Java? Installing the Software. Java

Purpose. Why use Java? Installing the Software. Java Purpose I am providing instructions for those that want to follow along the progress and missteps of Project BrainyCode. Going forward we will just refer to the project a JGG for Java Game Generator (I

More information

DESIGN AND IMPLEMENTATION OF SAGE DISPLAY CONTROLLER PROJECT

DESIGN AND IMPLEMENTATION OF SAGE DISPLAY CONTROLLER PROJECT DESIGN AND IMPLEMENTATION OF SAGE DISPLAY CONTROLLER BY Javid M. Alimohideen Meerasa M.S., University of Illinois at Chicago, 2003 PROJECT Submitted as partial fulfillment of the requirements for the degree

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

GWT - CREATE APPLICATION

GWT - CREATE APPLICATION GWT - CREATE APPLICATION http://www.tutorialspoint.com/gwt/gwt_create_application.htm Copyright tutorialspoint.com As power of GWT lies in Write in Java, Run in JavaScript, we'll be using Java IDE Eclipse

More information

A Business Case for Ajax with Google Web Toolkit. Bruce Johnson Google, Inc.

A Business Case for Ajax with Google Web Toolkit. Bruce Johnson Google, Inc. A Business Case for Ajax with Google Web Toolkit Bruce Johnson Google, Inc. Topics A Simpler-Than-Possible Explanation of GWT Investing in Ajax Why Ajax, Anyway? Risks Unique to Ajax How GWT Changes Things

More information

Guide Organization JReport Monitor Server

Guide Organization JReport Monitor Server Guide Organization JReport Monitor Server Table of Contents User's Guide: Organization of This Part...1 Installing and Launching JReport Monitor Server...2 Installing JReport Monitor Server on Windows

More information

Slide 1 CS 170 Java Programming 1 Duration: 00:00:49 Advance mode: Auto

Slide 1 CS 170 Java Programming 1 Duration: 00:00:49 Advance mode: Auto CS 170 Java Programming 1 Eclipse@Home Downloading, Installing and Customizing Eclipse at Home Slide 1 CS 170 Java Programming 1 Eclipse@Home Duration: 00:00:49 What is Eclipse? A full-featured professional

More information

About the Tutorial. Audience. Prerequisites. Disclaimer & Copyright. Jenkins

About the Tutorial. Audience. Prerequisites. Disclaimer & Copyright. Jenkins About the Tutorial Jenkins is a powerful application that allows continuous integration and continuous delivery of projects, regardless of the platform you are working on. It is a free source that can

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

McMaster Service-Based ehealth Integration Environment (MACSeie) Installation Guide July 24, 2009

McMaster Service-Based ehealth Integration Environment (MACSeie) Installation Guide July 24, 2009 McMaster Service-Based ehealth Integration Environment (MACSeie) Installation Guide July 24, 2009 Richard Lyn lynrf@mcmaster.ca Jianwei Yang yangj29@mcmaster.ca Document Revision History Rev. Level Date

More information

Simplifying GWT RPC with

Simplifying GWT RPC with 2012 Yaakov Chaikin Simplifying GWT RPC with Open Source GWT-Tools RPC Service (GWT 2.4 Version) Originals of Slides and Source Code for Examples: http://courses.coreservlets.com/course-materials/gwt.html

More information

GWT MOCK TEST GWT MOCK TEST I

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

More information

Introduction Haim Michael. All Rights Reserved.

Introduction Haim Michael. All Rights Reserved. Architecture Introduction Applications developed using Vaadin include a web application servlet based part, user interface components, themes that dictate the look & feel and a data model that enables

More information

Getting started with Geomajas. Geomajas Developers and Geosparc

Getting started with Geomajas. Geomajas Developers and Geosparc Getting started with Geomajas Geomajas Developers and Geosparc Getting started with Geomajas by Geomajas Developers and Geosparc 1.12.0-SNAPSHOT Copyright 2010-2014 Geosparc nv Abstract Documentation for

More information

JSF Tools Reference Guide. Version: M5

JSF Tools Reference Guide. Version: M5 JSF Tools Reference Guide Version: 3.3.0.M5 1. Introduction... 1 1.1. Key Features of JSF Tools... 1 2. 3. 4. 5. 1.2. Other relevant resources on the topic... 2 JavaServer Faces Support... 3 2.1. Facelets

More information

Software Engineering for Ajax

Software Engineering for Ajax 4 Software Engineering for Ajax Perhaps the greatest advantage of using the Google Web Toolkit to build Ajax applications is having the capability to leverage advanced software engineering. JavaScript

More information

CHAMELEON Project. Developer Guide. - Mobile Client - Server - UDDIe Registry. CHAMELEON Client and Server side

CHAMELEON Project. Developer Guide. - Mobile Client - Server - UDDIe Registry.   CHAMELEON Client and Server side CHAMELEON Project Developer Guide - Mobile Client - Server - UDDIe Registry http://www.di.univaq.it/chameleon/ i Version Changes Author(s) V2.0 The Mobile Client, the Server, the Resource Model, the Analyzer,

More information

GWT: The Technical Advantage. Presenter: Anirudh Dewani Company Name: Google

GWT: The Technical Advantage. Presenter: Anirudh Dewani Company Name: Google GWT: The Technical Advantage Presenter: Anirudh Dewani Company Name: Google What is GWT? 2 How it works Google Web Toolkit Weekly Report 09/01/2008-09/08/200 Code against Java UI libraries 3 How it works

More information

JSF: Introduction, Installation, and Setup

JSF: Introduction, Installation, and Setup 2007 Marty Hall JSF: Introduction, Installation, and Setup Originals of Slides and Source Code for Examples: http://www.coreservlets.com/jsf-tutorial/ Customized J2EE Training: http://courses.coreservlets.com/

More information

CSCI 201 Lab 1 Environment Setup

CSCI 201 Lab 1 Environment Setup CSCI 201 Lab 1 Environment Setup "The journey of a thousand miles begins with one step." - Lao Tzu Introduction This lab document will go over the steps to install and set up Eclipse, which is a Java integrated

More information

How To Get Database Schema In Java Using >>>CLICK HERE<<<

How To Get Database Schema In Java Using >>>CLICK HERE<<< How To Get Database Schema In Java Using Netbeans 6.8 But it can help novice students to complete their database assignment and also get knolege about How to configure Oracle 1og express database with

More information

EUSurvey Installation Guide

EUSurvey Installation Guide EUSurvey Installation Guide Guide to a successful installation of EUSurvey May 20 th, 2015 Version 1.2 (version family) 1 Content 1. Overview... 3 2. Prerequisites... 3 Tools... 4 Java SDK... 4 MySQL Database

More information

CS 170 Java Tools. Step 1: Got Java?

CS 170 Java Tools. Step 1: Got Java? CS 170 Java Tools This semester in CS 170 we'll be using the DrJava Integrated Development Environment. You're free to use other tools but this is what you'll use on your programming exams, so you'll need

More information

1. Go to the URL Click on JDK download option

1. Go to the URL   Click on JDK download option Download and installation of java 1. Go to the URL http://www.oracle.com/technetwork/java/javase/downloads/index.html Click on JDK download option 2. Select the java as per your system type (32 bit/ 64

More information

(Worth 50% of overall Project 1 grade)

(Worth 50% of overall Project 1 grade) 第 1 页共 8 页 2011/11/8 22:18 (Worth 50% of overall Project 1 grade) You will do Part 3 (the final part) of Project 1 with the same team as for Parts 1 and 2. If your team partner dropped the class and you

More information

Integrating Seam and GWT

Integrating Seam and GWT Integrating Seam and GWT Integrating the JBoss Seam Framework with the GWT Toolkit : Use cases and patterns Ferda Tartanoglu Neox ia 6563 Who we are 2 > Ferda TARTANOGLU, PhD Consultant and Software Architect

More information

Installing and configuring an Android device emulator. EntwicklerCamp 2012

Installing and configuring an Android device emulator. EntwicklerCamp 2012 Installing and configuring an Android device emulator EntwicklerCamp 2012 Page 1 of 29 Table of Contents Lab objectives...3 Time estimate...3 Prerequisites...3 Getting started...3 Setting up the device

More information

Webservices In Java Tutorial For Beginners Using Netbeans Pdf

Webservices In Java Tutorial For Beginners Using Netbeans Pdf Webservices In Java Tutorial For Beginners Using Netbeans Pdf Java (using Annotations, etc.). Part of way) (1/2). 1- Download Netbeans IDE for Java EE from here: 2- Follow the tutorial for creating a web

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

Kewill Customs Installations Guide

Kewill Customs Installations Guide Kewill Customs Installations Guide for Release 1.0.3 Original Publication: June, 2008 Last Revision: September, 2008 Table of Contents Table of Contents...2 Kewill Customs Installation Guide...3 Installation

More information

Web-based File Upload and Download System

Web-based File Upload and Download System COMP4905 Honor Project Web-based File Upload and Download System Author: Yongmei Liu Student number: 100292721 Supervisor: Dr. Tony White 1 Abstract This project gives solutions of how to upload documents

More information

Creating a New Project with Struts 2

Creating a New Project with Struts 2 Creating a New Project with Struts 2 February 2015 Level: By : Feri Djuandi Beginner Intermediate Expert Platform : Eclipse, Struts 2, JBoss AS 7.1.1. This tutorial explains how to create a new Java project

More information

Database Explorer Quickstart

Database Explorer Quickstart Database Explorer Quickstart Last Revision: Outline 1. Preface 2. Requirements 3. Introduction 4. Creating a Database Connection 1. Configuring a JDBC Driver 2. Creating a Connection Profile 3. Opening

More information

Apache Tomcat Installation guide step by step on windows

Apache Tomcat Installation guide step by step on windows 2012 Apache Tomcat Installation guide step by step on windows Apache tomcat installation guide step by step on windows. OraPedia Apache 12/14/2012 1 Tomcat installation guide Tomcat 6 installation guide

More information

This tutorial will teach you how to use Java Servlets to develop your web based applications in simple and easy steps.

This tutorial will teach you how to use Java Servlets to develop your web based applications in simple and easy steps. About the Tutorial Servlets provide a component-based, platform-independent method for building Webbased applications, without the performance limitations of CGI programs. Servlets have access to the entire

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

Google Plugin for Eclipse

Google Plugin for Eclipse Google Plugin for Eclipse Not just for newbies anymore Miguel Mendez Tech Lead - Google Plugin for Eclipse 1 Overview Background AJAX Google Web Toolkit (GWT) App Engine for Java Plugin Design Principles

More information

SmartFit Web Application Interface

SmartFit Web Application Interface Aleix Amill Cisneros Supervisor: Pawel Swiatek Date: 01/07/2011 Index Description of the system pag. 2 Functionalities. pag. 3 Installation of the system pag. 4 Tutorial. pag. 7 Developers guide.. pag.

More information

User's Manual for the Gumbix Algorithm Suite

User's Manual for the Gumbix Algorithm Suite User's Manual for the Gumbix Algorithm Suite Markus Gumbel 2008-2011 Abstract This paper describes the features of the Gumbix Algorithm Suite (GAS). This suite contains tools for the visualiziation of

More information

CS 268 Lab 6 Eclipse Test Server and JSPs

CS 268 Lab 6 Eclipse Test Server and JSPs CS 268 Lab 6 Eclipse Test Server and JSPs Setting up Eclipse The first thing you will do is to setup the Eclipse Web Server environment for testing. This will create a local web server running on your

More information

So far, Wednesday, February 03, :47 PM. So far,

So far, Wednesday, February 03, :47 PM. So far, Binding_and_Refinement Page 1 So far, 3:47 PM So far, We've created a simple persistence project with cloud references. There were lots of relationships between entities that must be fulfilled. How do

More information

Kewill Customs Installations Guide

Kewill Customs Installations Guide Kewill Customs Installations Guide for Release 1.1.3 Original Publication: June, 2008 Last Revision: March, 2009 Table of Contents Table of Contents...2 Kewill Customs Installation Guide...4 Installation

More information

1 Introduction. 2 Web Architecture

1 Introduction. 2 Web Architecture 1 Introduction This document serves two purposes. The first section provides a high level overview of how the different pieces of technology in web applications relate to each other, and how they relate

More information

WA1958 Mobile Software Design Patterns and Architecture Android Edition. Classroom Setup Guide. Web Age Solutions Inc.

WA1958 Mobile Software Design Patterns and Architecture Android Edition. Classroom Setup Guide. Web Age Solutions Inc. WA1958 Mobile Software Design Patterns and Architecture Android Edition Classroom Setup Guide Web Age Solutions Inc. Copyright 2011. Web Age Solutions Inc. 1 Table of Contents Part 1 - Minimum Hardware

More information

AutoVue Integration SDK & Sample Integration for Filesys DMS

AutoVue Integration SDK & Sample Integration for Filesys DMS AutoVue Integration SDK & Sample Integration for Filesys DMS Installation Guide AutoVue Integration SDK Contents INTRODUCTION...1 SYSTEM REQUIREMENTS...2 INSTALLATION PREREQUISITES...3 Download the Eclipse

More information

The ImageJ Eclipse Howto

The ImageJ Eclipse Howto 13-10-2018 1/25 The ImageJ Eclipse Howto The ImageJ Eclipse Howto A guide on how to include ImageJ into Eclipse and develop plugins using this IDE. Author: Patrick Pirrotte (patrick@image-archive.org)

More information

Chrome if I want to. What that should do, is have my specifications run against four different instances of Chrome, in parallel.

Chrome if I want to. What that should do, is have my specifications run against four different instances of Chrome, in parallel. Hi. I'm Prateek Baheti. I'm a developer at ThoughtWorks. I'm currently the tech lead on Mingle, which is a project management tool that ThoughtWorks builds. I work in Balor, which is where India's best

More information

Installation Guide - Mac

Installation Guide - Mac Kony Visualizer Enterprise Installation Guide - Mac Release V8 SP3 Document Relevance and Accuracy This document is considered relevant to the Release stated on this title page and the document version

More information

CHAPTER 6. Java Project Configuration

CHAPTER 6. Java Project Configuration CHAPTER 6 Java Project Configuration Eclipse includes features such as Content Assist and code templates that enhance rapid development and others that accelerate your navigation and learning of unfamiliar

More information

Jakarta Struts: An MVC Framework

Jakarta Struts: An MVC Framework 2010 Marty Hall Jakarta Struts: An MVC Framework Overview, Installation, and Setup Customized Java EE Training: http://courses.coreservlets.com/ Servlets, JSP, JSF 2.0, Struts, Ajax, GWT 2.0, Spring, Hibernate,

More information

WA2031 WebSphere Application Server 8.0 Administration on Windows. Student Labs. Web Age Solutions Inc. Copyright 2012 Web Age Solutions Inc.

WA2031 WebSphere Application Server 8.0 Administration on Windows. Student Labs. Web Age Solutions Inc. Copyright 2012 Web Age Solutions Inc. WA2031 WebSphere Application Server 8.0 Administration on Windows Student Labs Web Age Solutions Inc. Copyright 2012 Web Age Solutions Inc. 1 Table of Contents Directory Paths Used in Labs...3 Lab Notes...4

More information

Kewill Customs Installations Guide

Kewill Customs Installations Guide Kewill Customs Installations Guide For Release 2.0 Alliance R07 Compatible Original Publication: September, 2009 Table of Contents Table of Contents...2 Kewill Customs Installation Guide...4 Installation

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

Implement a Multi-Frontend Chat Application based on Eclipse Scout

Implement a Multi-Frontend Chat Application based on Eclipse Scout BAHBAH TUTORIAL Implement a Multi-Frontend Chat Application based on Eclipse Scout http://www.eclipse.org/scout/ 24.10.2012 Authors: Matthias Zimmermann, Matthias Villiger, Judith Gull TABLE OF CONTENTS

More information

Basic Uses of JavaScript: Modifying Existing Scripts

Basic Uses of JavaScript: Modifying Existing Scripts Overview: Basic Uses of JavaScript: Modifying Existing Scripts A popular high-level programming languages used for making Web pages interactive is JavaScript. Before we learn to program with JavaScript

More information

Anno Accademico Laboratorio di Tecnologie Web Introduzione ad Eclipse e Tomcat

Anno Accademico Laboratorio di Tecnologie Web Introduzione ad Eclipse e Tomcat Universita degli Studi di Bologna Facolta di Ingegneria Anno Accademico 2007-2008 Laboratorio di Tecnologie Web Introduzione ad Eclipse e Tomcat http://www lia.deis.unibo.it/courses/tecnologieweb0708/

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

How to Publish Any NetBeans Web App

How to Publish Any NetBeans Web App How to Publish Any NetBeans Web App (apps with Java Classes and/or database access) 1. OVERVIEW... 2 2. LOCATE YOUR NETBEANS PROJECT LOCALLY... 2 3. CONNECT TO CIS-LINUX2 USING SECURE FILE TRANSFER CLIENT

More information

Dspace 5.1. Installation on Windows 7 (32 bit system)

Dspace 5.1. Installation on Windows 7 (32 bit system) Dspace 5.1 Installation on Windows 7 (32 bit system) Pre-Requisite software Java SDK Apache Maven Apache Ant Apache Tomcat PostgreSQL Dspace Before Installation of DSpace Please check the system whether

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

GWT and jmaki: Expanding the GWT Universe. Carla Mott, Staff Engineer, Sun Microsystems Greg Murray, Ajax Architect, Sun Microsystems

GWT and jmaki: Expanding the GWT Universe. Carla Mott, Staff Engineer, Sun Microsystems Greg Murray, Ajax Architect, Sun Microsystems GWT and jmaki: Expanding the GWT Universe Carla Mott, Staff Engineer, Sun Microsystems Greg Murray, Ajax Architect, Sun Microsystems Learn how to enhance Google Web Toolkit (GWT) to include many Ajax enabled

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

AngularJS Intro Homework

AngularJS Intro Homework AngularJS Intro Homework Contents 1. Overview... 2 2. Database Requirements... 2 3. Navigation Requirements... 3 4. Styling Requirements... 4 5. Project Organization Specs (for the Routing Part of this

More information

JSF Tools Reference Guide. Version: beta1

JSF Tools Reference Guide. Version: beta1 JSF Tools Reference Guide Version: 3.0.0.beta1 1. Introduction... 1 1.1. Key Features of JSF Tools... 1 1.2. Other relevant resources on the topic... 2 2. JavaServer Faces Support... 3 2.1. Facelets Support...

More information

Spring Web Services Tutorial With Example In

Spring Web Services Tutorial With Example In Spring Web Services Tutorial With Example In Eclipse Bottom Up In addition to creating a basic web service and client, the article goes a step further This article will be using the Eclipse IDE (Kepler),

More information

Web API Lab. The next two deliverables you shall write yourself.

Web API Lab. The next two deliverables you shall write yourself. Web API Lab In this lab, you shall produce four deliverables in folder 07_webAPIs. The first two deliverables should be pretty much done for you in the sample code. 1. A server side Web API (named listusersapi.jsp)

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

Kewill Customs Installations Guide

Kewill Customs Installations Guide Kewill Customs Installations Guide For Release 2.0.3 Alliance R07 Patch 2 Hotfix 1 Compatible Original Publication: June, 2010 KC Install - 1 Table of Contents Table of Contents...2 Kewill Customs Installation

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

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

Error Received When Compiling Java Code Files Jasper Report

Error Received When Compiling Java Code Files Jasper Report Error Received When Compiling Java Code Files Jasper Report It means that either there is a problem in your Java source code, or there is a problem in the way that you are compiling it. Your Java A "Cannot

More information

IBM JZOS Meets Web 2.0

IBM JZOS Meets Web 2.0 IBM JZOS Meets Web 2.0 Tuesday, August 3 rd 2010 Session 7637 Steve Goetze Kirk Wolf http://dovetail.com info@dovetail.com Copyright 2010, Dovetailed Technologies Abstract The development and deployment

More information

Javascript Validator Xml Schema Eclipse Plugin

Javascript Validator Xml Schema Eclipse Plugin Javascript Validator Xml Schema Eclipse Plugin Summary: XML Schema validation fails when importing external schema Jesper, yes we contribute these xml's via plugins but the issue fails even without it.

More information

Sample Spark Web-App. Overview. Prerequisites

Sample Spark Web-App. Overview. Prerequisites Sample Spark Web-App Overview Follow along with these instructions using the sample Guessing Game project provided to you. This guide will walk you through setting up your workspace, compiling and running

More information

GWT in Action by Robert Hanson and Adam Tacy

GWT in Action by Robert Hanson and Adam Tacy SAMPLE CHAPTER GWT in Action by Robert Hanson and Adam Tacy Chapter 10 Copyright 2007 Manning Publications brief contents PART 1 GETTING STARTED...1 1 Introducing GWT 3 2 Creating the default application

More information