RE: UML Diagrams for Struts

2000-10-31 Thread Nick Airey


I agree that this would be a good resource to have. In particular, it would
be good if struts could be defined (perhaps using UML) as a design pattern.

This would enhance understanding and enable synergy with similar projects
like Turbine.



-Original Message-
From: Hines, Bill [mailto:[EMAIL PROTECTED]]
Sent: 31 October 2000 18:29
To: '[EMAIL PROTECTED]'
Subject: UML Diagrams for Struts


Does anyone know of or have any UML type diagrams for the struts-type model
2 core behavior? I'm thinking in terms of sequence diagrams that show the
general process of a request coming in and finding it's way through the
servlet, action class, hash table, worker beans, etc.

I'd like to structure our applications this way but I'm not quite ready to
buy into a whole 'framework' for our apps, having been previously bitten by
efforts like TurboVision, OWL, and the BDE framework from Borland. Plus, we
don't have servlets 2.2 and JSP 1.1 yet, we're still at 2.1 and 1.0
respectively.


If you are not the addressee of this confidential e-mail and any
attachments, please delete it and inform the sender; unauthorised
redistribution or publication is prohibited. Views expressed are those of
the author and do not necessarily represent those of Citria Limited.



RE: UML Diagrams for Struts

2000-10-31 Thread Halverson, Peter

David Geary's article about Struts in this month's Java Report includes some
class  and sequence diagrams that I found helpful.  Not extensive, but they
showed the key concepts well.

pete


> -Original Message-
> From: Hines, Bill [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 31, 2000 1:29 PM
> To: '[EMAIL PROTECTED]'
> Subject: UML Diagrams for Struts
> 
> 
> Does anyone know of or have any UML type diagrams for the 
> struts-type model
> 2 core behavior? I'm thinking in terms of sequence diagrams 
> that show the
> general process of a request coming in and finding it's way 
> through the
> servlet, action class, hash table, worker beans, etc.
> 
> I'd like to structure our applications this way but I'm not 
> quite ready to
> buy into a whole 'framework' for our apps, having been 
> previously bitten by
> efforts like TurboVision, OWL, and the BDE framework from 
> Borland. Plus, we
> don't have servlets 2.2 and JSP 1.1 yet, we're still at 2.1 and 1.0
> respectively.
> 




RE: UML Diagrams for Struts

2000-10-31 Thread Lori M Olson

Got an URL for that?

-Original Message-
From: Halverson, Peter [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 31, 2000 11:47 AM
To: '[EMAIL PROTECTED]'
Cc: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Subject: RE: UML Diagrams for Struts


David Geary's article about Struts in this month's Java Report includes some
class  and sequence diagrams that I found helpful.  Not extensive, but they
showed the key concepts well.

pete


> -Original Message-
> From: Hines, Bill [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 31, 2000 1:29 PM
> To: '[EMAIL PROTECTED]'
> Subject: UML Diagrams for Struts
>
>
> Does anyone know of or have any UML type diagrams for the
> struts-type model
> 2 core behavior? I'm thinking in terms of sequence diagrams
> that show the
> general process of a request coming in and finding it's way
> through the
> servlet, action class, hash table, worker beans, etc.
>
> I'd like to structure our applications this way but I'm not
> quite ready to
> buy into a whole 'framework' for our apps, having been
> previously bitten by
> efforts like TurboVision, OWL, and the BDE framework from
> Borland. Plus, we
> don't have servlets 2.2 and JSP 1.1 yet, we're still at 2.1 and 1.0
> respectively.
>





RE: UML Diagrams for Struts

2000-10-31 Thread Hines, Bill

Lori,

I think I found the article he was talking about at:
http://www.javareport.com/html/from_pages/column.cfm?articleID=1615
It doesn't mention struts (just at a glance) and I don't think it is by
Geary, but it does have some UML diagrams!

Interesting that the Java Report site is done with ColdFusion!!

Bill Hines
Hershey Foods

-Original Message-
From: Lori M Olson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 31, 2000 2:04 PM
To: [EMAIL PROTECTED]
Subject: RE: UML Diagrams for Struts

Got an URL for that?

-Original Message-
From: Halverson, Peter [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 31, 2000 11:47 AM
To: '[EMAIL PROTECTED]'
Cc: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Subject: RE: UML Diagrams for Struts


David Geary's article about Struts in this month's Java Report includes some
class  and sequence diagrams that I found helpful.  Not extensive, but they
showed the key concepts well.

pete


> -Original Message-
> From: Hines, Bill [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 31, 2000 1:29 PM
> To: '[EMAIL PROTECTED]'
> Subject: UML Diagrams for Struts
>
>
> Does anyone know of or have any UML type diagrams for the
> struts-type model
> 2 core behavior? I'm thinking in terms of sequence diagrams
> that show the
> general process of a request coming in and finding it's way
> through the
> servlet, action class, hash table, worker beans, etc.
>
> I'd like to structure our applications this way but I'm not
> quite ready to
> buy into a whole 'framework' for our apps, having been
> previously bitten by
> efforts like TurboVision, OWL, and the BDE framework from
> Borland. Plus, we
> don't have servlets 2.2 and JSP 1.1 yet, we're still at 2.1 and 1.0
> respectively.
>




RE: UML Diagrams for Struts

2000-10-31 Thread Halverson, Peter

The article doesn't seem to available on the JR web site, but perhaps the
author (CC:'d) might be persuaded to provide the models to the list.  Mr.
Geary?

pete


> -Original Message-
> From: Lori M Olson [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 31, 2000 2:04 PM
> To: [EMAIL PROTECTED]
> Subject: RE: UML Diagrams for Struts
> 
> 
> Got an URL for that?
> 
> -Original Message-
> From: Halverson, Peter [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 31, 2000 11:47 AM
> To: '[EMAIL PROTECTED]'
> Cc: '[EMAIL PROTECTED]'; 
> Subject: RE: UML Diagrams for Struts
> 
> 
> David Geary's article about Struts in this month's Java 
> Report includes some
> class  and sequence diagrams that I found helpful.  Not 
> extensive, but they
> showed the key concepts well.
> 
> pete
> 
> 
> > -Original Message-
> > From: Hines, Bill [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, October 31, 2000 1:29 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: UML Diagrams for Struts
> >
> >
> > Does anyone know of or have any UML type diagrams for the
> > struts-type model
> > 2 core behavior? I'm thinking in terms of sequence diagrams
> > that show the
> > general process of a request coming in and finding it's way
> > through the
> > servlet, action class, hash table, worker beans, etc.
> 




RE: UML Diagrams for Struts

2000-11-02 Thread Jean-Pierre Schnyder

Here's a class diagram I draw some days ago. Feel free to criticize it. I
can provide you with the Visio 2000 file if you want.

Jean-Pierre



-Original Message-
From: Hines, Bill [mailto:[EMAIL PROTECTED]]
Sent: mardi, 31. octobre 2000 19:29
To: '[EMAIL PROTECTED]'
Subject: UML Diagrams for Struts


Does anyone know of or have any UML type diagrams for the struts-type model
2 core behavior? I'm thinking in terms of sequence diagrams that show the
general process of a request coming in and finding it's way through the
servlet, action class, hash table, worker beans, etc.

I'd like to structure our applications this way but I'm not quite ready to
buy into a whole 'framework' for our apps, having been previously bitten by
efforts like TurboVision, OWL, and the BDE framework from Borland. Plus, we
don't have servlets 2.2 and JSP 1.1 yet, we're still at 2.1 and 1.0
respectively.


 STRUTS_architecture.pdf


RE: UML Diagrams for Struts

2000-11-02 Thread Seth Ladd

> Here's a class diagram I draw some days ago. Feel free to criticize it. I
> can provide you with the Visio 2000 file if you want.

Thanks so much for taking the time to create the diagram.  I really
appreciate it.  One question I had for you, though, is where the
StartUpServlet comes from.  I am assuming that it is a custom servlet you
had created to initialize the webapp?  I have the same problem: how to
initialize the app (building connection pool, find EJBs, etc).  Has anyone
else given this any thought?  One solution would be to specify a startup
class in the actions.xml file.  This class implements init() which is
basically called by the ActionServlet's init().  Any ideas?

Thanks,
Seth




RE: UML Diagrams for Struts

2000-11-02 Thread Jean-Pierre Schnyder

You're right. I will have to implement a StartupServlet. For now, it is only
on the design document. Same remark for the ConnectionPool class. I'll use
one of those which are available as Open Source on the Net.

Jean-Pierre

-Original Message-
From: Seth Ladd [mailto:[EMAIL PROTECTED]]
Sent: jeudi, 2. novembre 2000 15:02
To: [EMAIL PROTECTED]
Subject: RE: UML Diagrams for Struts


> Here's a class diagram I draw some days ago. Feel free to criticize it. I
> can provide you with the Visio 2000 file if you want.

Thanks so much for taking the time to create the diagram.  I really
appreciate it.  One question I had for you, though, is where the
StartUpServlet comes from.  I am assuming that it is a custom servlet you
had created to initialize the webapp?  I have the same problem: how to
initialize the app (building connection pool, find EJBs, etc).  Has anyone
else given this any thought?  One solution would be to specify a startup
class in the actions.xml file.  This class implements init() which is
basically called by the ActionServlet's init().  Any ideas?

Thanks,
Seth



RE: UML Diagrams for Struts

2000-11-02 Thread Loelkes, Jochen

Thanks for the UML diagram for Struts.
Is there any further description about the relations / differences between
BusinessObject and BusinessObjectBean.
How do you seperate them, what's in the Object, what in the ObjectBean ?
Maybe an example would be very helpful ...

Many thanks,
Jochen

> -Original Message-
> From: Jean-Pierre Schnyder [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, November 02, 2000 9:05 AM
> To:   '[EMAIL PROTECTED]'
> Subject:      RE: UML Diagrams for Struts
> 
> Here's a class diagram I draw some days ago. Feel free to criticize it. I
> can provide you with the Visio 2000 file if you want.
> 
> Jean-Pierre
> 
> 
> 
> -Original Message-
> From: Hines, Bill [mailto:[EMAIL PROTECTED]]
> Sent: mardi, 31. octobre 2000 19:29
> To: '[EMAIL PROTECTED]'
> Subject: UML Diagrams for Struts
> 
> 
> Does anyone know of or have any UML type diagrams for the struts-type
> model
> 2 core behavior? I'm thinking in terms of sequence diagrams that show the
> general process of a request coming in and finding it's way through the
> servlet, action class, hash table, worker beans, etc.
> 
> I'd like to structure our applications this way but I'm not quite ready to
> buy into a whole 'framework' for our apps, having been previously bitten
> by
> efforts like TurboVision, OWL, and the BDE framework from Borland. Plus,
> we
> don't have servlets 2.2 and JSP 1.1 yet, we're still at 2.1 and 1.0
> respectively.
>  << File: STRUTS_architecture.pdf >> 



RE: UML Diagrams for Struts

2000-11-02 Thread Jean-Pierre Schnyder

The role of the BusinessObjectBeans, which conform to the javabean
specifications, is to contain the data needed by the JSP pages. So, when a
JSP page is about to construct an html page, it will ask the BOBean to
provide the required data. So, the BOBean are the way the Presentation layer
is communicating with the Business layer, or the model. The Presentation
layer only access the model through the BOBeans.

The BusinessObjects are private classes of the model, which are not intended
to be used by the JSP developer. While BusinessObjectBeans are pretty dumb,
the BusinessObjects host the business logic, or business rules. They know
how to calculate the information which will be stored into BOBeans for the
JSP's.

Any comment on this philosophy is welcomed.

Jean-Pierre

-Original Message-
From: Loelkes, Jochen [mailto:[EMAIL PROTECTED]]
Sent: jeudi, 2. novembre 2000 15:23
To: '[EMAIL PROTECTED]'
Subject: RE: UML Diagrams for Struts


Thanks for the UML diagram for Struts.
Is there any further description about the relations / differences between
BusinessObject and BusinessObjectBean.
How do you seperate them, what's in the Object, what in the ObjectBean ?
Maybe an example would be very helpful ...

Many thanks,
Jochen

> -Original Message-
> From: Jean-Pierre Schnyder [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, November 02, 2000 9:05 AM
> To:   '[EMAIL PROTECTED]'
> Subject:  RE: UML Diagrams for Struts
> 
> Here's a class diagram I draw some days ago. Feel free to criticize it. I
> can provide you with the Visio 2000 file if you want.
> 
> Jean-Pierre
> 
> 
> 
> -Original Message-
> From: Hines, Bill [mailto:[EMAIL PROTECTED]]
> Sent: mardi, 31. octobre 2000 19:29
> To: '[EMAIL PROTECTED]'
> Subject: UML Diagrams for Struts
> 
> 
> Does anyone know of or have any UML type diagrams for the struts-type
> model
> 2 core behavior? I'm thinking in terms of sequence diagrams that show the
> general process of a request coming in and finding it's way through the
> servlet, action class, hash table, worker beans, etc.
> 
> I'd like to structure our applications this way but I'm not quite ready to
> buy into a whole 'framework' for our apps, having been previously bitten
> by
> efforts like TurboVision, OWL, and the BDE framework from Borland. Plus,
> we
> don't have servlets 2.2 and JSP 1.1 yet, we're still at 2.1 and 1.0
> respectively.
>  << File: STRUTS_architecture.pdf >> 



RE: UML Diagrams for Struts

2000-11-02 Thread Matt Heinrichs

I for one would appreciate the Visio version of this file as well.


Thanks,
Matt
-
Matthew W. Heinrichs
Fax: 1(501)421-7321
cell: (612)749-

-Original Message-
From:Jean-Pierre Schnyder [EMAIL PROTECTED]
Sent:Thu, 2 Nov 2000 09:05:28 +0100
To:  [EMAIL PROTECTED]
Subject: RE: UML Diagrams for Struts


Here's a class diagram I draw some days ago. Feel free to criticize it. I
can provide you with the Visio 2000 file if you want.

Jean-Pierre



-Original Message-
From: Hines, Bill [mailto:[EMAIL PROTECTED]]
Sent: mardi, 31. octobre 2000 19:29
To: '[EMAIL PROTECTED]'
Subject: UML Diagrams for Struts


Does anyone know of or have any UML type diagrams for the struts-type model
2 core behavior? I'm thinking in terms of sequence diagrams that show the
general process of a request coming in and finding it's way through the
servlet, action class, hash table, worker beans, etc.

I'd like to structure our applications this way but I'm not quite ready to
buy into a whole 'framework' for our apps, having been previously bitten by
efforts like TurboVision, OWL, and the BDE framework from Borland. Plus, we
don't have servlets 2.2 and JSP 1.1 yet, we're still at 2.1 and 1.0
respectively.




___
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.




Re: UML Diagrams for Struts

2000-11-02 Thread Craig R. McClanahan

Jean-Pierre Schnyder wrote:

> Here's a class diagram I draw some days ago. Feel free to criticize it. I
> can provide you with the Visio 2000 file if you want.
>
> Jean-Pierre
>

Jean-Pierre,

Thanks very much for doing this .. is it OK with you if I include your diagram
in the Struts documentation?

Craig


>
> -Original Message-
> From: Hines, Bill [mailto:[EMAIL PROTECTED]]
> Sent: mardi, 31. octobre 2000 19:29
> To: '[EMAIL PROTECTED]'
> Subject: UML Diagrams for Struts
>
> Does anyone know of or have any UML type diagrams for the struts-type model
> 2 core behavior? I'm thinking in terms of sequence diagrams that show the
> general process of a request coming in and finding it's way through the
> servlet, action class, hash table, worker beans, etc.
>
> I'd like to structure our applications this way but I'm not quite ready to
> buy into a whole 'framework' for our apps, having been previously bitten by
> efforts like TurboVision, OWL, and the BDE framework from Borland. Plus, we
> don't have servlets 2.2 and JSP 1.1 yet, we're still at 2.1 and 1.0
> respectively.
>
>   
>   Name: STRUTS_architecture.pdf
>STRUTS_architecture.pdfType: Acrobat (application/pdf)
>   Encoding: base64




Re: UML Diagrams for Struts

2000-11-02 Thread Craig R. McClanahan

Seth Ladd wrote:

> > Here's a class diagram I draw some days ago. Feel free to criticize it. I
> > can provide you with the Visio 2000 file if you want.
>
> Thanks so much for taking the time to create the diagram.  I really
> appreciate it.  One question I had for you, though, is where the
> StartUpServlet comes from.  I am assuming that it is a custom servlet you
> had created to initialize the webapp?  I have the same problem: how to
> initialize the app (building connection pool, find EJBs, etc).  Has anyone
> else given this any thought?  One solution would be to specify a startup
> class in the actions.xml file.  This class implements init() which is
> basically called by the ActionServlet's init().  Any ideas?
>

Application initialization is a little bit clumsy under servlet versions <
2.3.  The solution I chose in the Struts example application was to create a
separate servlet (DatabaseServlet) that fulfills the role of the startup
servlet in the diagram, and then made sure that it is marked 
in the web.xml file.  That way, it will get loaded before requests are
processed, and can initialize global resources, storing them as servlet context
attributes to make them visible to the rest of the app.

The clumsy part of this, though, is that I put the code to gracefully close
these connections in the destroy() method of DatabaseServlet, based on the
assumption that the servlet container will not actually remove this servlet
while the app is running.  That is true for many / most servlet containers
today, but is not guaranteed.

Under the new Servlet 2.3 spec, however, there is a new feature -- application
events -- that is designed to deal with this situation gracefully.  You can
register (in web.xml) a listener class that is notified when the application is
started, and when it is shut down.  This is a perfect place to do
initialization and finalization type activities.

>
> Thanks,
> Seth

Craig McClanahan





RE: UML Diagrams for Struts

2000-11-02 Thread Mark Harrop

Hi..

Could you pls email me the UML also ?

Cheers!
Mark Harrop
[EMAIL PROTECTED]

Moderator  of the following Programming Lists:

Send a empty message to:

[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]


At 01:23 3/11/00, Loelkes, Jochen wrote:
Thanks for the UML diagram for
Struts.
Is there any further description about the relations / differences
between
BusinessObject and BusinessObjectBean.
How do you seperate them, what's in the Object, what in the ObjectBean
?
Maybe an example would be very helpful ...

Many thanks,
Jochen

> -Original Message-
> From: Jean-Pierre Schnyder
[SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, November 02, 2000 9:05 AM
>
To:   '[EMAIL PROTECTED]'
> Subject:      RE: UML
Diagrams for Struts
> 
> Here's a class diagram I draw some days ago. Feel free to criticize
it. I
> can provide you with the Visio 2000 file if you want.
> 
> Jean-Pierre
> 
> 
> 
> -Original Message-
> From: Hines, Bill
[mailto:[EMAIL PROTECTED]]
> Sent: mardi, 31. octobre 2000 19:29
> To: '[EMAIL PROTECTED]'
> Subject: UML Diagrams for Struts
> 
> 
> Does anyone know of or have any UML type diagrams for the
struts-type
> model
> 2 core behavior? I'm thinking in terms of sequence diagrams that
show the
> general process of a request coming in and finding it's way through
the
> servlet, action class, hash table, worker beans, etc.
> 
> I'd like to structure our applications this way but I'm not quite
ready to
> buy into a whole 'framework' for our apps, having been previously
bitten
> by
> efforts like TurboVision, OWL, and the BDE framework from Borland.
Plus,
> we
> don't have servlets 2.2 and JSP 1.1 yet, we're still at 2.1 and
1.0
> respectively.
>  << File: STRUTS_architecture.pdf >> 






RE: UML Diagrams for Struts

2000-11-05 Thread Jean-Pierre Schnyder

Here you are (the 1st file is in Visio 2000 format, the 2nd file in Visio 5
format) !

Jean-Pierre



-Original Message-
From: Matt Heinrichs [mailto:[EMAIL PROTECTED]]
Sent: jeudi, 2. novembre 2000 15:48
To: [EMAIL PROTECTED]
Subject: RE: UML Diagrams for Struts


I for one would appreciate the Visio version of this file as well.


Thanks,
Matt
-
Matthew W. Heinrichs
Fax: 1(501)421-7321
cell: (612)749-

-Original Message-
From:Jean-Pierre Schnyder [EMAIL PROTECTED]
Sent:Thu, 2 Nov 2000 09:05:28 +0100
To:  [EMAIL PROTECTED]
Subject: RE: UML Diagrams for Struts


Here's a class diagram I draw some days ago. Feel free to criticize it. I
can provide you with the Visio 2000 file if you want.

Jean-Pierre



-Original Message-
From: Hines, Bill [mailto:[EMAIL PROTECTED]]
Sent: mardi, 31. octobre 2000 19:29
To: '[EMAIL PROTECTED]'
Subject: UML Diagrams for Struts


Does anyone know of or have any UML type diagrams for the struts-type model
2 core behavior? I'm thinking in terms of sequence diagrams that show the
general process of a request coming in and finding it's way through the
servlet, action class, hash table, worker beans, etc.

I'd like to structure our applications this way but I'm not quite ready to
buy into a whole 'framework' for our apps, having been previously bitten by
efforts like TurboVision, OWL, and the BDE framework from Borland. Plus, we
don't have servlets 2.2 and JSP 1.1 yet, we're still at 2.1 and 1.0
respectively.




___
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.


 struts_uml.zip


RE: UML Diagrams for Struts

2000-11-05 Thread Jean-Pierre Schnyder

no problems for me !

jps

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: jeudi, 2. novembre 2000 18:38
To: [EMAIL PROTECTED]
Subject: Re: UML Diagrams for Struts


Jean-Pierre Schnyder wrote:

> Here's a class diagram I draw some days ago. Feel free to criticize it. I
> can provide you with the Visio 2000 file if you want.
>
> Jean-Pierre
>

Jean-Pierre,

Thanks very much for doing this .. is it OK with you if I include your
diagram
in the Struts documentation?

Craig


>
> -Original Message-
> From: Hines, Bill [mailto:[EMAIL PROTECTED]]
> Sent: mardi, 31. octobre 2000 19:29
> To: '[EMAIL PROTECTED]'
> Subject: UML Diagrams for Struts
>
> Does anyone know of or have any UML type diagrams for the struts-type
model
> 2 core behavior? I'm thinking in terms of sequence diagrams that show the
> general process of a request coming in and finding it's way through the
> servlet, action class, hash table, worker beans, etc.
>
> I'd like to structure our applications this way but I'm not quite ready to
> buy into a whole 'framework' for our apps, having been previously bitten
by
> efforts like TurboVision, OWL, and the BDE framework from Borland. Plus,
we
> don't have servlets 2.2 and JSP 1.1 yet, we're still at 2.1 and 1.0
> respectively.
>
>   
>   Name: STRUTS_architecture.pdf
>STRUTS_architecture.pdfType: Acrobat (application/pdf)
>   Encoding: base64