Every Flavour Beans

“The time has come…to talk of many [technologies].” –Lewis Carroll(‘The Walrus and the Carpenter’)
Development Tools. Web Frameworks. GNU/Linux. Nokia N800. Video Encoding.

August 4, 2008

Struts 2 Plugin for NetBeans IDE – nbstruts2support

Filed under: Java, Netbeans, Struts 2 — tabrez @ 10:09 pm

As mentioned in my previous post about creating Struts 2 web applications in NetBeans IDE, there is a Struts 2 plugin available for the NetBeans IDE but it is still under development. You can try it out right away if you are interested; the name of the plugin is nbstruts2support.

First read the summary of its current feature list(and what is planned for the future) and have a look at some screenshots. Then follow the installation instructions and try it on your system.

Below I take you through the installation process of nbstruts2support Struts 2 plugin for NetBeans 6.1 IDE showing a few screenshots along the way.

Installing nbstruts2support plugin in NetBeans IDE

  1. Go to the nbstruts2support download page and download the two nbm files and save them in a directory.
    Download nbstruts2support Struts 2 plugin for NetBeans IDE.
  2. Start the NetBeans IDE if not already running and go to Tools -> Plugins and select the Downloaded tab. Click the Add Plugins… button and select the two plugin files(.nbm files) downloaded in the earlier step.
    Install nbstruts2support nbm plugin files in NetBeans IDE.
    Install nbstruts2support nbm plugin files in NetBeans IDE.
  3. The Plugins dialog box should show you the details about the plugin.

    Install nbstruts2support nbm plugin files in NetBeans IDE.

    Go through the wizard clicking the button Next and accepting the license agreement and ignoring any errors about invalid signature.

    Install nbstruts2support nbm plugin files in NetBeans IDE.

    Restart the NetBeans IDE when prompted.
    Install nbstruts2support nbm plugin files in NetBeans IDE.

    The Struts 2 plugin is now installed in NetBeans.

Using nbstruts2support in NetBeans IDE

  1. The plugin doesn’t allow a Struts 2 project template to be created in NetBeans, which means that we need to manually create a basic Web Application and add Struts 2 libraries to it manually. We also need to create struts configuration files(struts.xml and struts.properties) and modify the web.xml file. If we do all this manually, then what does the plugin do?

    For one thing, the plugin helps in creating template files for Struts 2 Actions, Interceptors, Results etc.
    nbstruts2support Struts 2 plugin for NetBeans IDE allows easy creation of Struts 2 Action, Interceptor etc. template files.

    Secondly, it helps in auto-completion:
    nbstruts2support Struts 2 plugin for NetBeans IDE helps in auto-completion.
    More information on auto-completion.

    It is not yet completely bug free though:
    nbstruts2support Struts 2 plugin for NetBeans IDE helps in auto-completion but is not bug free.

    It also helps in easy navigation using hyperlinks. (See all the tabs at the top of the page: Analysis, Phase I, Phase II, Phase III.)
    nbstruts2support Struts 2 plugin for NetBeans IDE helps in hyperlinking.
    [image from nbstruts2support website]

End Notes:
The current state of Struts 2 support in the NetBeans IDE is hardly satisfying. Let us wait and see how much time it takes to complete at least the basic features in nbstruts2support. It is at least slightly better than creating and developing Struts 2 applications completely manually.

The state is different if we look at other IDEs like Eclipse and IntelliJ IDEA. I will talk more about Struts 2 support for Eclipse IDE in my next post.


If you want to receive future posts by email, enter your email address here:

Related Posts:

  • “Hello, World” Web Application using Struts 2 in IntelliJ IDEA 8.0 M1
  • “Hello, World” Web Application using Struts 2 in NetBeans IDE 6.1
  • Setting Up Rails Development Environment using Aptana Studio
  • “Hello, World” Java Web Application using Java SE 6 + Tomcat 5.5 + Maven 2
  • “Hello, World” Web Application using Spring MVC in NetBeans IDE 6.7
  • Wordpress Upgrading Experience With Automatic Upgrade Plugin
  • Wordpress Plugin and Theme Cheatsheets


  • 12 Comments »

    1. well, i’m really looking forward to your next post, because i’m not aware of any struts 2 plugin for any IDE. There is something planned for upcoming release of idea, but it’s still in the milestone. cya

      Quote

      Comment by don — September 13, 2008 @ 11:30 pm

    2. It’s good guideline !
      Thank you very much !

      Quote

      Comment by thanhtb — October 2, 2008 @ 4:18 pm

    3. [...] see my previous posts “Hello, World” Web Application using Struts 2 in NetBeans IDE 6.1 and Struts 2 Plugin for NetBeans IDE – nbstruts2support for example. All we need to do now is to write our own application [...]

      Quote

      Pingback by “Hello, World” Web Application using Struts 2 in IntelliJ IDEA 8.0 M1 — October 4, 2008 @ 9:42 pm

    4. Hey this was really helpful.
      thanks

      Quote

      Comment by palsahab — February 24, 2009 @ 10:42 pm

    5. Hi.
      there’s a possibility to update the library (is 0.11 and the latests is the 0.14)?.
      thanks.

      Quote

      Comment by Stefano — March 13, 2009 @ 3:48 pm

    6. Hi,
      I get this error: “the plugin XML text editor is required in implementation version 4″, but I have that plugin already and netbeans says that I have everything updated to the last version.
      Any help?

      Quote

      Comment by Luca — April 30, 2009 @ 1:37 pm

    7. Hi:

      Thanks for the info, it was really helpful…

      I am trying to install the plugins but got an error message when trying to install the Struts2 support:

      Missing required modules for Plugin Struts2 Support:
      XML Text Editor [module org.netbeans.modules.xml.text/2 > 1.14.0.4]

      I’ve searched but not found any info about this, could anybody help me?

      By the way, the NetBean’s version I am using is the 6.0.1

      Thks in advance…

      Quote

      Comment by Oscar — May 12, 2009 @ 9:15 pm

    8. Gracias por la ayuda, funciona de maravilla ahora puedo continuar aprendiendo mas acerca de este framework

      Quote

      Comment by Juan — May 19, 2009 @ 1:50 am

    9. gracias por la ayuda, hora puedo seguir con mi investigacion acerca de este framework

      Quote

      Comment by Juan — May 19, 2009 @ 1:51 am

    10. A great and helpful page of information. Many thanks.

      Quote

      Comment by JohnB — May 26, 2009 @ 5:26 pm

    11. Thanks a lot, thats a great help!

      Quote

      Comment by Sush — July 7, 2009 @ 9:35 pm

    12. hi am using netbeans 6.0.1. I downloaded struts2 support & struts2 library. when am trying to install them it is displaying the message
      Missing required modules for Plugin Struts2 Support:
      XML Text Editor [module org.netbeans.modules.xml.text/2 > 1.14.0.4]
      how to solve this?

      Quote

      Comment by amar — August 27, 2009 @ 4:15 pm

    RSS feed for comments on this post. TrackBack URI

    Leave a comment


    Copyright (c) 2006, 2007 Tabrez Iqbal.
    Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. Verbatim copying and distribution of this entire article is permitted in any medium without royalty provided this notice is preserved. A copy of the license is included in the section entitled "GNU Free Documentation License".


    Powered by WordPress
    This website is hosted by Dreamhost