Search WebSpherePower's 6,962 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
Excitement brewing for JavaOne 2010, with or without Google
Large companies ignore data centre advice
Onapsis to Release ERP Vulnerability Testing Suite
Botnet Takedown May Yield Valuable Data
VMware app dev platform gazes beyond SpringSource Java
IBM Claims World's Fastest Chip
'Free Java': InfoWorld's guide to the protest goodies
>> Read all the news
More from the ZATZ journals
Computing Unplugged: Smartphone smarts for a mobile world
David Gewirtz Online: CNN commentary and analysis
DominoPower: It's time for Lotus to double-down on Linux and open source
OutlookPower: The strange case of Outlook losing notes and requiring passwords
-- Advertisement --

How To Save Jobs
This book is about how to create and save jobs. Believe it or not, there's not a single book out there that specifically focuses on job creation and preservation -- until now.

This book, by ZATZ editor-in-chief David Gewirtz, is about helping your business work better. It's about helping you change the things you need to change so your company can perform more effectively.

Plus, through a grant from ZATZ, it's a free download.

Read it and reap.

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