60 lines
2.7 KiB
HTML
60 lines
2.7 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||
|
<html>
|
||
|
<head>
|
||
|
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||
|
<LINK rel="stylesheet" type="text/css" href="../../../rzahg/ic.css">
|
||
|
|
||
|
<title>Step 2: Design your application</title>
|
||
|
</head>
|
||
|
|
||
|
<BODY>
|
||
|
<!-- Java sync-link -->
|
||
|
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
|
||
|
|
||
|
<h2><A NAME="pgmdesign"></A>Step 2: Design your application</h2>
|
||
|
|
||
|
<p>When you begin to develop actual applications, use the steps below to take advantage of the strengths of each Java component in your applications.</p>
|
||
|
|
||
|
|
||
|
<ol>
|
||
|
|
||
|
<li><strong>Design object-oriented applications to reuse and maintain code.</strong>
|
||
|
<ul>
|
||
|
<li>Break different types of logic into separate Java classes. Some logical types are:
|
||
|
<ul>
|
||
|
<li>Business processes</li>
|
||
|
<li>Data structures and modeling</li>
|
||
|
<li>Application flow</li>
|
||
|
<li>Database access</li>
|
||
|
<li>Web page presentation</li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
<li>When possible, design complex logical or data structures as collections of simpler Java objects.</li>
|
||
|
<li>When several processes or data structures share "common denominator" variables or functionality, do the following:
|
||
|
<ol>
|
||
|
<li>Group common variables and functions into a base class.</li>
|
||
|
<li>Extend the base class to create more specialized classes.</li>
|
||
|
</ol>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
|
||
|
<li><strong>Design your code to take advantage of the strengths of the Java components.</strong>
|
||
|
<ul>
|
||
|
<li>Use servlets to perform application logic, call other Java components, and work with Extensible Markup Language (XML).</li>
|
||
|
<li>Use JavaServer Pages (JSP) files to create dynamic Web pages.</li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
</ol>
|
||
|
|
||
|
<p>Use these resources for more information on designing web applications:</p>
|
||
|
<ul>
|
||
|
<li><p><a href="http://java.sun.com/blueprints/guidelines/designing_enterprise_applications_2e/index.html">
|
||
|
Designing Enterprise Applications with the J2EE Platform, Second Edition</a> <img src="www.gif" width="18" height="15" alt="Link outside Information Center" border="0">
|
||
|
<br>This article provides architectural hints and best practices for designing J2EE applications. Note that this article contains information pertaining to enterprise beans, which are not supported by WebSphere Application Server - Express.</p></li>
|
||
|
<li><p><a href="http://www.redbooks.ibm.com/redpieces/pdfs/sg246555.pdf" target="_">WebSphere Application Server - Express V5.0 Handbook</a> <img src="www.gif" width="18" height="15" alt="Link outside Information Center" border="0">
|
||
|
<br><em>Chapter 2: Application design</em> of this IBM Redbook provides modeling and design consideration for WebSphere Application Server - Express.</p></li>
|
||
|
</ul>
|
||
|
</body>
|
||
|
</html>
|