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]

Struts-based portal applications

Model and develop them with WebSphere Studio

Jeff K. Wilson (wilsonje@us.ibm.com), E-business Architect, IBM
Jeff Wilson, a self-proclaimed dot-com refugee, has for the past three years been an e-business architect for the DragonSlayers, IBM's developer relations technical consulting team in Austin, Texas. It is their goal to excite, evangelize, educate, and enable developers on the latest tools and technologies available. Jeff welcomes any and all questions, comments, recipes, insider stock tips, cash, prizes, and any good juicy gossip.

Summary:  Struts is a very popular framework that adds a flexible control layer to building Web based applications using common standard technologies like servlets, JavaBeans components, resource bundles, and custom tag libraries. This tutorial provides a hands-on approach to developing Struts based portal applications using WebSphere Studio V5.1.2 and the Portal Toolkit V5.0.2.2.

Date:  09 Jul 2004
Level:  Introductory PDF:  A4 and Letter (1072 KB | 44 pages)Get Adobe® Reader®

Activity:  5238 views
Comments:  

Before you begin

Overview

This tutorial provides a hands-on approach to developing Struts-based portal applications using WebSphere® Studio Application Developer V5.1.2 and the Portal Toolkit V5.0.2.2. These tools are available for both WebSphere Studio Site Developer, which comes with WebSphere Portal, and Application Developer. The Portal Toolkit functions the same way in both tools.

The popular Struts framework adds a flexible control layer for building Web-based applications using common standard technologies like servlets, JavaBeans components, resource bundles, and custom tag libraries. Primarily, Struts focuses on modeling navigation throughout an application; however, it also provides many other benefits, particularly with form validation and resource handling. In addition, with Struts it's easy to implement custom tags that help you control how elements on JSPs function -- for instance, form input fields can manage values and submissions.

Struts functions by using a controller mechanism that manages all requests, comparing them to a deployment descriptor that maps necessary components. This conflicts with a similar WebSphere Portal concept, where the portal engine manages the control of incoming requests. As a workaround, WebSphere Portal provides a Struts Portal Framework bridge that manages the flow of requests between the portal environment and the Struts framework (among other things).

In the past, implementing this Struts Portal Framework in a portal application was mainly a manual and sometimes kludgey process that required you to always begin with an existing Struts-enabled portal application (never mind the philosophical "portlet or the egg" question). Thankfully, now the Portal Toolkit V5.0.2.2 provides some slick and rather complete tools to aid such projects.


Who should take this tutorial?

This tutorial is aimed at portal developers who want to implement Struts into their portal or, I suppose, Struts developers who want to develop portlets.

This tutorial simply describes the process of implementing Struts in your portal; you really don't need to be an expert with either Struts or portlet development in order to take it. However, if you pay attention, you might learn a little about both in the process.

In short, it's for any Web developer who cares, and maybe a few that don't.


Prerequisites

To complete the steps in this tutorial, you need the following software installed on your computer:

The CutAndPasteCode.txt file contains code snippets used in some of the steps throughout the tutorial. You can use this file to easily cut and paste code from (unless you prefer to test your spelling skills by typing it all by hand).

Download both WebSphere Studio (Site or Application) Developer V5.1.2 and the Portal Toolkit V5.0.2.2. Install WebSphere Studio, accepting all defaults, and run the Portal Toolkit installer, installing both the toolkit and the test environment.

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=WebSphere
ArticleID=143014
TutorialTitle=Struts-based portal applications
publish-date=07092004
author1-email=wilsonje@us.ibm.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.