Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Create secure Java applications productively, Part 1

Use Rational Application Developer and Data Studio

Tyler Anderson (tyleranderson5@yahoo.com), Freelance writer and developer, Backstop Media
Tyler's photo
Tyler Anderson has graduated with a degree in computer science in 2004 and a Master of Science degree in computer engineering in December, 2005, both from Brigham Young University. Tyler is currently a freelance writer and developer for Backstop Media.

Summary:  This is the first in a two-part tutorial series creating secure Java-based Web applications using Rational® Application Developer, Data Studio and Rational AppScan. This first tutorial begins by showcasing how Data Studio with pureQuery can increase the efficiency of your database-driven Web development. You will be developing a Java™ Web application with Rational Application Developer, and then with Java Server Pages (JSP) you will deploy the application on WebSphere® Application Server.

Date:  14 Apr 2008
Level:  Intermediate PDF:  A4 and Letter (1486 KB | 62 pages)Get Adobe® Reader®

Activity:  14027 views
Comments:  

Before you start

This tutorial is recommended for Java and database application developers who want to take advantage of using Data Studio for its pureQuery capabilities and Rational Application Developer to facilitate the development of a Java-based Web application. Knowledge of JSP and Web development in general is also useful for this tutorial, but is not required.

About this series

This two-part series aims to broaden your Web application development skills through the use of Rational Application Developer, Data Studio and Rational AppScan.

  • Part 1 uses the IDE capabilities of Rational Application Developer and the pureQuery features of Data Studio to efficiently create a Java-based wealth management Web application.
  • Part 2 takes advantage of the many Rational AppScan features available to harden/make secure the Java application by discovering vulnerabilities and fixing them so that you can be confident about deploying your Web application.

About this tutorial

This tutorial shows you how to use Data Studio to develop applications more efficiently by automatically creating reliable database connection classes. The efficiencies provided by Data Studio are shown by creating a Java-based Web application using Rational Application Developer and Data Studio that is deployed to WebSphere Application Server. You will also learn how to create and set up an application using Rational Application Developer and Data Studio, including:

  • Creating a DB2 database connection
  • Creating a pureQuery enabled dynamic Web application
  • Generating pureQuery code from database tables
  • Augmenting pureQuery code with custom queries
  • Creating JSP that uses the pureQuery classes
  • Deploy and test on WebSphere Application Server

You'll learn and implement the above concepts by creating a wealth management Web application that users will be able to log into and view their various holdings. The delayed value of stock and options holdings will be grabbed from Yahoo! Finance API. You'll also create a form to manually add new real estate holdings.


System requirements

For this tutorial you're only going to need three products:

  • Rational Application Developer
    Get a trial version of Rational Application Developer 7.0.0.6 from IBM (click Download using the new IBM Installation Manager (recommended) link). You'll use Rational Application Developer as a full featured Eclipse based IDE for developing your Java Web application.
  • Data Studio
    This free plugin contains the pureQuery capabilities you'll use for efficient database driven Web development. This tutorial requires version 1.1.2 (the only version compatible with Rational Application Developer 7.0.0.6).
  • DB2 Express-C
    Data Studio requires a live database connection to generate pureQuery code for. This tutorial uses DB2 Express-C for the database.

Note that this tutorial should work with future releases of Rational Application Developer and Data Studio that are compatible (for example, Rational Application Developer 7.0.0.7 and Data Studio 1.1.3, if these versions were to exist). Please refer to IBM as to which of these future versions will be compatible with each other. In the mean time, Rational Application Developer 7.0.0.6 and Data Studio 1.1.2 are known to be compatible with each other.

1 of 9 | Next

Comments



Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Rational, Information Management
ArticleID=301170
TutorialTitle=Create secure Java applications productively, Part 1
publish-date=04142008
author1-email=tyleranderson5@yahoo.com
author1-email-cc=

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Try IBM PureSystems. No charge.