You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "du Clos, John" <Jo...@arbitron.com> on 2001/05/21 19:49:56 UTC

Auto Form/Action Class Code Generator?

Before we contemplate doing this, I wanted to ask the list if this has
already been done.

Is there a code generator (nothing fancy) that can read an existing .html or
.jsp file and generate the corresponding Form and Action classes.  The
generator would identify the variables from the presentation forms
(html/jsp) and automatically generate corresponding skeleton classes for
Form and Action.

The benefits of this is that it allows your graphical designers to design
the forms first, then the code generator can give the developers a jump
start by creating the skeleton classes; thus developers can jump start
coding actual business logic.

Thanks,
JD


Re: Auto Form/Action Class Code Generator?

Posted by Ajit Joglekar <av...@yahoo.com>.
Any ideas about how to do this? Tom, JD are you already working on this?

I thought about using JTidy to generate xhtml from the original html and
then to use JDom to access / update the form elements and attributes.

Regards,
Ajit Joglekar.


----- Original Message -----
From: "Tom Janofsky" <to...@yahoo.com>
To: <st...@jakarta.apache.org>
Sent: Tuesday, May 22, 2001 12:39 AM
Subject: Re: Auto Form/Action Class Code Generator?


>
> If not, I'd be happy to work with someone on one.  This would fit well
> with how we generally do screens anyay.
>
> Let me know.
>
> --tom
>
> "du Clos, John" wrote:
> >
> > Before we contemplate doing this, I wanted to ask the list if this has
> > already been done.
> >
> > Is there a code generator (nothing fancy) that can read an existing
.html or
> > .jsp file and generate the corresponding Form and Action classes.  The
> > generator would identify the variables from the presentation forms
> > (html/jsp) and automatically generate corresponding skeleton classes for
> > Form and Action.
> >
> > The benefits of this is that it allows your graphical designers to
design
> > the forms first, then the code generator can give the developers a jump
> > start by creating the skeleton classes; thus developers can jump start
> > coding actual business logic.
> >
> > Thanks,
> > JD


Re: Auto Form/Action Class Code Generator?

Posted by Tom Janofsky <to...@yahoo.com>.
If not, I'd be happy to work with someone on one.  This would fit well
with how we generally do screens anyay.

Let me know.

--tom

"du Clos, John" wrote:
> 
> Before we contemplate doing this, I wanted to ask the list if this has
> already been done.
> 
> Is there a code generator (nothing fancy) that can read an existing .html or
> .jsp file and generate the corresponding Form and Action classes.  The
> generator would identify the variables from the presentation forms
> (html/jsp) and automatically generate corresponding skeleton classes for
> Form and Action.
> 
> The benefits of this is that it allows your graphical designers to design
> the forms first, then the code generator can give the developers a jump
> start by creating the skeleton classes; thus developers can jump start
> coding actual business logic.
> 
> Thanks,
> JD