Struts Setup

What is the best way to set up IntelliJ IDEA 4.5 to work with the Struts framework? For example, where should I copy .JARs, .TLDs, etc...? Also, what needs to be configured within the software to recognize these files? Thanks.

6 comments
Comment actions Permalink

Uh. You just have to set up a web application (you create a web module with the normal idea wizards) and then create a "struts library" putting the jars in it. If you read the docs it's no more than 5 minutes. ;)

0
Comment actions Permalink

Great, thanks for the reply. I have a few followup questions. What "docs" are you talking about? Can the "struts library" be a global library?

Thanks

0
Comment actions Permalink

He is talking about the Help in IDEA for working with external libraries. But to answer your question, yes Struts can be setup as a global library.

Although I should you should probably figure this out for yourself, here is one of the ways of doing this.

1> Unzip the Struts API somewhere on your local machine.

2> Right click on your project name and select "Module settings...".

3> Select the "Libraries (Classpath)" tab.

4> Bottom right of the window you will see a box saying "Used Global Libraries". Click the "Edit..." button to the left of that box.

5> Click on Create Library

6> In the popup window enter a sensible library name (probably "Struts 1.2.4") and select all the .jar files in your %STRUTS_HOME%/lib directory. Click OK.

7> Click OK to apply your global library configuration.

8> Your new library should now appear in the "Used Global Libraries" box. Check the box beside it and press "OK" to save your module settings.

Struts support should now be enabled.

0
Comment actions Permalink

By the way, thoss instructions are the standard way for applying any external API for use within IDEA. There is nothing special about Struts.

0
Comment actions Permalink

Thanks for the help! I appreciate the response.

0

Please sign in to leave a comment.