As Will says, there's more than one approach, but here's what works for
me:

1. Write a specification, even if it's for yourself and just a paragraph
long. I started a sample outline for one th example at <
http://husted.com/about/struts/example-spec.html >, but never finished
it. 

2. Storyboard the application workflow. Here I just whip up some HTML
screens with a visual editor like Dreamweaver or Frontpage. For testing
forms, you can put another storyboard page in as the action target, and
sample results on the other side. 

3. Now that I know what I'm writing ;-), I design the model (database
tables and queries). 

This is generally the first third of a project. 

4. As Will says, identify, build, and test any reusable objects first,
say for CRUD operations. Also try to layer your code so things like SQL
commands and statements can be used and tested seperately.

5. Plan a path through your storyboard, and start building the JSP pages
and the support code to hook them up to the objects and the model. Look
for the simplest, useful workflow, and implement that first.

This is generally the second third of a project. The last third is
testing the application and making changes, including bug fixes. 

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/about/struts/


William Jaynes wrote:
> 
> Don't be too hard on yourself. I'm not sure how much of programming has ever
> become second nature to me. No matter how experienced one gets, there's always
> too much new stuff to learn.
> 
> There is no right answer. You have to work out what is best for yourself. Some
> advocate an approach that starts with the html, kind of a story boarding
> approach. (see Ted's http://husted.com/about/struts/strutByStrut.htm) Other's
> would say get the model right first, develop those objects, test them outside
> any specific application (perhaps using JUnit). Of course, the usual method is
> somewhere in between. (mmm... I guess this isn't much help.)
> 
> Will
> 
> ----- Original Message -----
> From: "Rodney Smith" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, August 09, 2001 3:54 AM
> Subject: Kick start to Struts
> 
> Hi all,
> 
> Which comes first the chicken or the egg?
> I need to know when creating a struts web application which comes first,
> creating the java component first, then build the html and convert to jsp?
> that is the question I need to get started into my own web application
> through struts. I would really like as much feed back as possible in the best
> professional approach to this. As I have so much enthusiasm, but not enough
> knowledge in this area.
> This sort of information that I request is second nature to web designs and
> programmers I gather, but I am new to the game.
> 
> Thanks to all those listeners and most importantly thanks to the perfect
> responses from Ted and Craig.
> 
> Kind Regards
> Rodney Smith
> 
> --
> Sent through GMX FreeMail - http://www.gmx.net

Reply via email to