欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  资讯频道

Struts2 in NetBeans 6.1 发布

程序员文章站 2022-05-10 14:26:42
...

说实在的这个版本的Struts2 plugin for NetBeans 并不怎么样! 功能有限,但是有总比没有的好,至少还可以提高一点生产力!  这个插件带的lib 很少最好还是用自己的lib。

 

下面是 Struts2 Support Features:

 

Apache Struts 2 is an elegant, extensible framework for creating enterprise-ready Java web applications. The framework is designed to streamline the full development cycle, from building, to deploying, to maintaining applications over time. You can read more about Struts 2 at http://struts.apache.org/2.x/.

Installation instructions can be found here.

 

下载地址 https://nbstruts2support.dev.java.net/servlets/ProjectDocumentList?folderID=9422%26expandFolder=9422%26folderID=8962

Framework Support

***To be added***

Context based Code Completion(基于上下文的代码自动补全)

Code completion assists the programmers/developers to fill in the values for the various attributes. It enlists all possible entries that a attribute/element value can have in a configuration file. By doing so, we improve the ease of use for editing a Struts Configuration file.

Some screen shots of code completion:

Struts2 in NetBeans 6.1 发布

Code completion also assists while specifying a fully qualified java name (inclusive of packages)

Struts2 in NetBeans 6.1 发布



For an exhaustive list on the code completion scenarios, please visit this link.

Hyperlinking (超连接跳转)

With the help of this plugin, the developer will be able to jump to the point of origin (declaration) of an entity. It would be applicable to all the elements present in the configuration file, right from Interceptors, results,etc. to externally referenced Java files. Some of the hyperlinking scenarios that have been implemented are shown below. 

Struts2 in NetBeans 6.1 发布

For an exhaustive list on the hyperlinking scenarios, please visit this link.

Wizards(向导生成)

Wizards assist the programmers by generating a default template for Struts 2 components like Interceptors, Results, Actions and Configuration files. Once, we have a web project with Struts 2 framework, we can add an Interceptor/Action/Result/Configuration file into our project by clicking on 'File -> New File -> Struts 2'. 

Struts2 in NetBeans 6.1 发布

The screen shot below shows the scenario of creating a new Interceptor using a wizard:

Struts2 in NetBeans 6.1 发布