You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by james logsdon <ja...@hotmail.com> on 2003/03/12 15:54:11 UTC

Re: Opinions on Struts code generator - A zipped version

Hopefully this works...





>From: Robert McIntosh <ro...@bull-enterprises.com>
>Reply-To: "Struts Users Mailing List" <st...@jakarta.apache.org>
>To: Struts Users Mailing List <st...@jakarta.apache.org>
>Subject: Re: Opinions on Struts code generator
>Date: Tue, 11 Mar 2003 17:25:06 -0600
>
>how about zipping it up?
>
>james logsdon wrote:
>
>>
>>I was not able to attach my pdf file. The mail server either said that it 
>>was too big or it just did not attach it.
>>
>>I created a group on yahoo and added the file there. It can be retrieved 
>>by following the link:
>>
>>http://groups.yahoo.com/group/quickStartCodeGenerator/files/QuickStart.doc
>>
>>but if you do not have a yahoo id you will have to create one. Sorry for 
>>any inconvenience.
>>James
>>
>>
>>
>>>From: "james logsdon" <ja...@hotmail.com>
>>>Reply-To: "Struts Users Mailing List" <st...@jakarta.apache.org>
>>>To: struts-user@jakarta.apache.org
>>>Subject: Re: Opinions on Struts code generator
>>>Date: Tue, 11 Mar 2003 16:51:58 -0600
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>>From: "james logsdon" <ja...@hotmail.com>
>>>>Reply-To: "Struts Users Mailing List" <st...@jakarta.apache.org>
>>>>To: struts-user@jakarta.apache.org
>>>>Subject: Re: Opinions on Struts code generator
>>>>Date: Tue, 11 Mar 2003 16:47:47 -0600
>>>>
>>>>
>>>>
>>>>Let me try one more time...
>>>>
>>>>
>>>>
>>>>
>>>>>From: "james logsdon" <ja...@hotmail.com>
>>>>>Reply-To: "Struts Users Mailing List" <st...@jakarta.apache.org>
>>>>>To: struts-user@jakarta.apache.org
>>>>>Subject: Opinions on Struts code generator
>>>>>Date: Tue, 11 Mar 2003 15:06:16 -0600
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>Hello,
>>>>>   I have built a Struts code generator that converts HTML pages and a 
>>>>>state diagram into a Struts application. The HTML files are input into 
>>>>>JTidy to create XHTML (as done in cocoon) and then several XSL 
>>>>>transformations are done to create the various Struts files. All of the 
>>>>>code generation is done with an Ant script which creates war file from 
>>>>>the input files.
>>>>>
>>>>>If enough people think this is useful I will donate to open source... 
>>>>>Would appreciate feedback on the utility of the approach take, and if 
>>>>>their are ways to improve the generated code.
>>>>>
>>>>>James
>>>>>
>>>>>PS - Had to break document into two as there is a 100k document size 
>>>>>limit.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>_________________________________________________________________
>>>>>MSN 8 with e-mail virus protection service: 2 months FREE*  
>>>>>http://join.msn.com/?page=features/virus
>>>>>
>>>>>
>>>>>---------------------------------------------------------------------
>>>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>>>
>>>>
>>>>
>>>>_________________________________________________________________
>>>>MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
>>>>http://join.msn.com/?page=features/virus
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>
>>>
>>>
>>>_________________________________________________________________
>>>MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
>>>http://join.msn.com/?page=features/virus
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>
>>
>>
>>_________________________________________________________________
>>Protect your PC - get McAfee.com VirusScan Online  
>>http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>


_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

Re: Opinions on Struts code generator - A zipped version

Posted by Vic Cekvenich <vc...@basebeans.com>.
It looks good.
Consider making a sourceforge project or using someone elses.

I like that you start from HTML and do JTidy.

Consider a feature request: Make action, sturts-config and formbean 
generation based on "custom" template, or that it's easy for people to 
change what kind of code gets generated, etc.

.V

james logsdon wrote:
> 
> Hopefully this works...
> 
> 
> 
> 
> 
>> From: Robert McIntosh <ro...@bull-enterprises.com>
>> Reply-To: "Struts Users Mailing List" <st...@jakarta.apache.org>
>> To: Struts Users Mailing List <st...@jakarta.apache.org>
>> Subject: Re: Opinions on Struts code generator
>> Date: Tue, 11 Mar 2003 17:25:06 -0600
>>
>> how about zipping it up?
>>
>> james logsdon wrote:
>>
>>>
>>> I was not able to attach my pdf file. The mail server either said 
>>> that it was too big or it just did not attach it.
>>>
>>> I created a group on yahoo and added the file there. It can be 
>>> retrieved by following the link:
>>>
>>> http://groups.yahoo.com/group/quickStartCodeGenerator/files/QuickStart.doc 
>>>
>>>
>>> but if you do not have a yahoo id you will have to create one. Sorry 
>>> for any inconvenience.
>>> James
>>>
>>>
>>>
>>>> From: "james logsdon" <ja...@hotmail.com>
>>>> Reply-To: "Struts Users Mailing List" <st...@jakarta.apache.org>
>>>> To: struts-user@jakarta.apache.org
>>>> Subject: Re: Opinions on Struts code generator
>>>> Date: Tue, 11 Mar 2003 16:51:58 -0600
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>> From: "james logsdon" <ja...@hotmail.com>
>>>>> Reply-To: "Struts Users Mailing List" <st...@jakarta.apache.org>
>>>>> To: struts-user@jakarta.apache.org
>>>>> Subject: Re: Opinions on Struts code generator
>>>>> Date: Tue, 11 Mar 2003 16:47:47 -0600
>>>>>
>>>>>
>>>>>
>>>>> Let me try one more time...
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> From: "james logsdon" <ja...@hotmail.com>
>>>>>> Reply-To: "Struts Users Mailing List" 
>>>>>> <st...@jakarta.apache.org>
>>>>>> To: struts-user@jakarta.apache.org
>>>>>> Subject: Opinions on Struts code generator
>>>>>> Date: Tue, 11 Mar 2003 15:06:16 -0600
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Hello,
>>>>>>   I have built a Struts code generator that converts HTML pages 
>>>>>> and a state diagram into a Struts application. The HTML files are 
>>>>>> input into JTidy to create XHTML (as done in cocoon) and then 
>>>>>> several XSL transformations are done to create the various Struts 
>>>>>> files. All of the code generation is done with an Ant script which 
>>>>>> creates war file from the input files.
>>>>>>
>>>>>> If enough people think this is useful I will donate to open 
>>>>>> source... Would appreciate feedback on the utility of the approach 
>>>>>> take, and if their are ways to improve the generated code.
>>>>>>
>>>>>> James
>>>>>>
>>>>>> PS - Had to break document into two as there is a 100k document 
>>>>>> size limit.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> _________________________________________________________________
>>>>>> MSN 8 with e-mail virus protection service: 2 months FREE*  
>>>>>> http://join.msn.com/?page=features/virus
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>>>> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>>>>
>>>>>
>>>>>
>>>>> _________________________________________________________________
>>>>> MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
>>>>> http://join.msn.com/?page=features/virus
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>>> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>>
>>>>
>>>>
>>>>
>>>> _________________________________________________________________
>>>> MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
>>>> http://join.msn.com/?page=features/virus
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>
>>>
>>>
>>>
>>> _________________________________________________________________
>>> Protect your PC - get McAfee.com VirusScan Online  
>>> http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>
> 
> 
> _________________________________________________________________
> STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
> http://join.msn.com/?page=features/junkmail
> 
> 
> ------------------------------------------------------------------------
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Opinions on Struts code generator - A zipped version

Posted by Emmanuel Feller <Em...@free.fr>.
> Most applications are based on requirements, and easy to
define those as
> HTML.
>
> To go backwards from here is what we have see if anyone
want's it is not
> as good aproach.

I understand your point of view. We started to make
requirements in html form, but our customers didn't take
care of the real informations in the screen, and they looked
to the colors or the place of field. So the process of
requirements expression wasn't stable until lots of
iteration.

We use powerpoint to do the requirements now. The colors and
design and the last things we are taking care about. Since i
only work on big projects (more than 10k human days), we
save lots of time when we stop using html prototype.

I though we are not the only ones to do the same, that's why
i am wondering for code generator from business logic.

Emmanuel



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Opinions on Struts code generator - A zipped version

Posted by Vic Cekvenich <vc...@basebeans.com>.

Emmanuel Feller wrote:
> Hi James,
> 
> I take a look to your paper and i found it very interesting.
> But I am wondering if every code generator are not taking
> the problem by a wrong way, because I saw some of them
> (your, one on Ted Husted's site, one made in my office, and
> few others which wasn't mature) and every code generator are
> html based.
> They parse the html pages and find the information needed,
> so they generate the action needed to populate theses data
> into jsp.
> 
> But when you start an application you first think to
> business logic, so you know which information will be on the
> pages. 

Most applications are based on requirements, and easy to define those as 
HTML.

To go backwards from here is what we have see if anyone want's it is not 
as good aproach.

.V


So why not do generation of code (action, actionform,
> jsp and struts-config.xml) from business logic API and the
> navigation state diagram ?
> 
> I like your paper because it introduced a state diagram, and
> i only ever saw it in our internal codegenerator.
> 
> I am working on a struts application to dynamically build a
> web application. Presentation part should be logic less, so
> it logically could be automatically build. In an hour, the
> core application should be available and it should not
> required lot of tools : only a browser to connect to a
> developpement server. An Ant could be packaged into the
> codegenerator to deploy for testing into build process. Once
> the navigation is ok and it work as you like, you may
> download the sources and only at this point do the html
> presentation.
> 
> This is more natural when you are working on a module for a
> big application. Here you can use tiles and all the
> productivity features proposed into struts.
> 
> I am at your disposition if you want more information. ;)
> 
> Regards,
> Emmanuel Feller
> Senior Developper
> Cap Gemini Ernst & Young
> +33 2 51 17 35 00 phone 3716
> +33 6 23 34 63 39
> ----- Message d'origine -----
> De : "james logsdon" <ja...@hotmail.com>
> À : <st...@jakarta.apache.org>
> Envoyé : mercredi 12 mars 2003 15:54
> Objet : Re: Opinions on Struts code generator - A zipped
> version
> 
> 
> 
>>Hopefully this works...
>>



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Opinions on Struts code generator - A zipped version

Posted by Emmanuel Feller <Em...@free.fr>.
Hi James,

I take a look to your paper and i found it very interesting.
But I am wondering if every code generator are not taking
the problem by a wrong way, because I saw some of them
(your, one on Ted Husted's site, one made in my office, and
few others which wasn't mature) and every code generator are
html based.
They parse the html pages and find the information needed,
so they generate the action needed to populate theses data
into jsp.

But when you start an application you first think to
business logic, so you know which information will be on the
pages. So why not do generation of code (action, actionform,
jsp and struts-config.xml) from business logic API and the
navigation state diagram ?

I like your paper because it introduced a state diagram, and
i only ever saw it in our internal codegenerator.

I am working on a struts application to dynamically build a
web application. Presentation part should be logic less, so
it logically could be automatically build. In an hour, the
core application should be available and it should not
required lot of tools : only a browser to connect to a
developpement server. An Ant could be packaged into the
codegenerator to deploy for testing into build process. Once
the navigation is ok and it work as you like, you may
download the sources and only at this point do the html
presentation.

This is more natural when you are working on a module for a
big application. Here you can use tiles and all the
productivity features proposed into struts.

I am at your disposition if you want more information. ;)

Regards,
Emmanuel Feller
Senior Developper
Cap Gemini Ernst & Young
+33 2 51 17 35 00 phone 3716
+33 6 23 34 63 39
----- Message d'origine -----
De : "james logsdon" <ja...@hotmail.com>
� : <st...@jakarta.apache.org>
Envoy� : mercredi 12 mars 2003 15:54
Objet : Re: Opinions on Struts code generator - A zipped
version


>
> Hopefully this works...
>




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org