Search WebSpherePower's 5,995 WebSphere, Java, and Eclipse article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Twitter Feed Click here for the Twitter feed.
OPEN SOURCE OPTIONS
Become a Struts wizard using WebSphere Studio V5
By Dan Velasco

Struts is an open source framework for building Java web applications. Do you want to be a Struts wizard? Do you use WebSphere Studio for your application development? If so, you can use the power of WebSphere Studio and its built-in wizards to easily create Struts-enabled applications to impress your friends and neighbors (OK, so it will only impress other geeky developers, but that's enough, isn't it?).

Here are the steps to add Struts support to your web applications by using the power of WebSphere Studio.

Make sure you are in the Web Perspective and then select File --> New --> Web Project. On the first dialog box, give your project a name and then in the "Web Project features" section at the lower left, just click the checkbox next to "Add Struts support" as shown in Figure A.

FIGURE A


Start your Web project by clicking "Add Struts support." Roll over picture for a larger image.

Click next, then fill out the "J2EE Settings Page," and click next again. In the "Struts Settings" dialog box, keep the default settings if this is your first Struts application. If you're more experienced with Struts, you can choose to override the default settings by clicking the checkbox.

Click the Finish button and your new Struts-enabled application will be created for you.

What you'll notice is that all of the files you need to create a Struts-enabled application have been configured for you. For instance, you'll see the following items:

Under the Java Source folder:

  • A resources folder and file off of the Java Source folder

Under the Web Content folder:

  • All of the JAR files you need in the WEB-INF/lib directory.
  • The tag library descriptor files in the WEB-INF directory for using the Struts custom tags
  • A default struts-config.xml file for configuring your Struts application

Now, here's where I slip in a little mini-tip inside the tip. You may have noticed that there was a Struts version on the Struts Settings page. When I first started using the wizard to create Struts applications, the version was at 1.1 (beta 2). What's cool is that there is a way to easily upgrade what version is available by simply upgrading WebSphere Studio.

To upgrade WebSphere Studio, go to Help --> Software Updates --> New Updates. When I ran this I saw the dialog box shown in Figure B telling me there were updates available.

FIGURE B


Select the updates you want to install. Roll over picture for a larger image.

I installed them, and then the upgrade process prompted me to restart WebSphere Studio. Note that the first time I ran this it took quite a bit of time, and you need to be sure to have a high-speed Internet connection in order to download all of the software updates.


1  ·  2  ·  Next »
Other articles you might like
Home > WebSphere Studio (9 articles)
   Setting up a Wiki in WebSphere Studio Application Developer
   Upgrading WebSphere Studio to Version 5.1.2
   Managing multiple workspaces with WebSphere Studio
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
Recent WebSpherePower Articles
A perfect 10: celebrating 10 years online
You can help bring security and safety back to White House email
Introducing the WebSpherePower RSS feeds
From New Jersey to Palm Bay, Florida
A WebSphere pot o' gold
How Elvis entered the building and CES went out the window
WebSphere Application Server 6: what's it all mean?
WebSpherePower News
All SaaS-Ed Up
WebSphere Application Server V7.0 Security Guide
PostgreSQL 8.4 Released, Now Easier to Use Than Ever
Sun's VirtualBox 3.0 exits betaland
Capitalware releases MQ Channel Monitor v1.0.0 for Free
OpsWise Software Announces Workload Automation Broker for Cloud Computing
O'Reilly Webcast: Cloud Computing: The Next Frontier for Open Source
>> Read all the news
More from the ZATZ journals
Computing Unplugged: Eight steps to successful and reliable home backups
David Gewirtz Online: CNN commentary and analysis
DominoPower: What to look for in a Domino-based document management solution
OutlookPower: Can Outlook run when it's not running (and other mysteries)?
-- Advertisement --

EASY DEDICATED AND VIRTUAL DEDICATED SERVERS FOR AS LOW AS $67.99 PER MONTH
Customize and configure your own dedicated server. Simply choose one of our popular plans or select your own Linux or Windows server and plan options.

NO LONG WAITS. Server provisioned within hours.

Tap here now and be up and running with your own server tonight.

-- Advertisement --

Influencer. Recommender. Decision Maker.
They all read WebSpherePower Magazine. They all rely on WebSpherePower Magazine.

If you want to reach the inner-circle of IBM IT professionals, you won't find a better resource than WebSpherePower Magazine.

Click for our Media Kit

ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 2009, ZATZ Publishing. All rights reserved worldwide.
Editor's Login