我们的generator不是用于struts的。
其实我只是对Struts研究而已,并没有采用Struts编写程序。我们有自己的一套framework.
不过sf.net上有一个现成的struts的generator,(见后),还有一个名为EasyStruts的eclipse
plugin可以减少你的劳动。他会帮你生成actionform等框架代码。
Anouncing Karapan Sapi, Struts Code Generator
by javanovic on August 19, 2002
Karapan Sapi is a generator that automatically create SQL DDL, Java Bean, DAOs, Struts Action and Struts Form code, Struts configuration, web.xml and Ant build file. It also creates .jsp for create, retrieve, update, delete and list operations, and is i18n ready.
Check it out at:
http://strutsgenerator.sourceforge.net/
Whatdo
people think about the code generators that are coming out in the industry?
More Info
=========
As Tiles and Validator are included in Struts 1.1b1, Karapan Sapi also uses them in the generated code. Karapan Sapi is a developers code generator, aiming to help automate development while not dumbingdo
wn the architecture by hiding the details. Karapan Sapi is licensed under LGPL.
Karapan Sapi will generate massive volumes of your projects code, all adhering to best practice. Developers can then
take this code and add to it as their project requires.
Karapan Sapi's input are small XML config files. The outputs it generates are:
Database creation scripts (SQL DDL)
struts-config.xml
web.xml
tiles-def.xml
validation.xml
StrutsAction
StrutsForm
DAO
JavaBean
Pager utility (for listing a long list)
Startup filter (for loading object on session startup)
Startup plugin (for loading object on application startup)
.JSP files
build.xml (ant build file)