RE: Struts and the UML modeling approachHi,
Thanks a lot for the tips.
I am getting to the same type of conclusion.
Too often, the use cases generated by the business analysts are compelling the
architect and the developpers to
mix up processes related to the presentation tier with the processes related to the
company own business.
When we want afterwards to untight both types of processes to open the global
architecture towards standalone application
or webservices, it is very tough actuallly.
This is why I'd like to find out a UML methodology to access the Struts framework for
non-java developper.
I would like to protect the developpers and avoid them to reinvent the wheel about web
java MVC2 framework and command pattern....
The use of the machine state diagram seems to be obvious for such a goal.
We can easily feel the gateway in between the machine state diagram and the struts
framework. It is almost like a natural move.
But when we talk about state, shall we consider the page (view) or the ViewBean
(model) (the controller do not have any state ...) ?
or both ?
formbean <---> event
jsp <----> state
ViewBean <---> state
Action <---> action !!!
transition <---> forward
logic condition (or rule) <---> ??? (doesn't exist yet and would be maybe the future
struts workflow project).
Anyway, the idea to generate XMI files from the machine state diagram and to generate
struts code from these XMI files is pretty atractive.
I've done so with entity beans code generation from database METADATA XML
representation and it would extremely nice to find such a tool
for struts for example (the CAMINO approach is good but doesn't refer to any UML
approach...).
Something like EJBGen but instead going from the XMI representation of the database
schema, going from the XMI representation of the Web tier
presentation layer : struts for example.
Your feedbacks would really be appreciated.
Thanks a lot
Best Regards
Jean-Guillaume LALANNE
(sorry for the bad translation of this off-line discussion)
Merci pour le conseil. J'arrive au m�me type de conclusion.
Trop souvent les use cases g�n�r�es par les fonctionnels emm�nent les architectes
� m�langer les
processus li�s � la pr�sentation et ceux li�s aux fonctionnalit�s m�tier de
l'entreprise. Et si apr�s on veut faire
de l'applicatif standalone ou du webservice et bien, tous les processus m�tiers
sont coupl�s au web tier ...et il devient difficile
de tout d�coupler. c'est bien dans cet esprit que j'essaie de voir comment on peut
acc�der � un framework du style de struts en
passant par UML. Les mhachines d'�tat sont une �tape �vidente.
Mais les �tats concernent-t-ils la vue ou le mod�le (le controlleur n'a pas
vraiment d'�tat) ? les 2 ?
En tout cas, j'aime beaucoup l'id�e du template xsl pour g�n�rer le code (j'ai
d�j� fait un truc comme ca pour les entity beans CMP).
XMI ...je ne maitrise pas trop encore...
Mais bon je vais peut-�tre m'y pencher de plus pr�s.
Merci encore pour les conseils
Cordialement
Jean-Guillaume LALANNE
----- Original Message -----
From: Pierre-Yves Chauveau
To: 'Jean-Guillaume LALANNE '
Sent: Friday, March 01, 2002 8:57 AM
Subject: RE: Struts and the UML modeling approach
Salut,
Use-case and use-case realizations are nice for the business-tier but not the
presentation-tier, because you need to describe the navigation beetween your pages.
The best way would be to describe your navigation with a state machine :
basically the states are the JSP and the events, the actions. Then you can generate
the struts-config.xml. Use other possiblities of xml to describe the
FormBeans,Datasource etc... Then export the model in xmi, and do some Xslt
transformation.
So far, I'm looking for something that would do that...
Pierre-Yves chauveau
-----Message d'origine-----
De: Jean-Guillaume LALANNE
A: Arnaud Buisine
Cc: [EMAIL PROTECTED]
Date: 28/02/02 16:37
Objet: Re: Struts and the UML modeling approach
Hi or Salut,
I haven't got any answer...
But I'd like to get some !!!
I look at your site www.sysdeo.com and I was surprised to find out that
we
are dealing with the
same kind of stuff : UML,WSAD,J2EE,EJB,XML/XSL,Struts ....
To come back to our ships (just kidding ...), I am working for a client
that
doesn't know so much about
UML,java,J2EE,websphere and other interesting stuff like these ones, and
that has decided to run a project
on all these features right away. Pretty ambitious.
I have to help them on this project.
I like the idea of going slowly from UML to the code. I like also the
idea
to use a simple framework to guide them
on a good track. I think Struts is a good framework to start.
But the point is : how to link the framework to the modelling, I mean
how to
represent struts in the global UML approach ?
Use cases are really interesting to get the client requirements but
doesn't
help so much in the web GUI modelling (MVC + display workflow).
I have heard about rational and together approach but I don't know so
much
about it.
If you have some inputs or some urls, they would really be appreciated.
Thanks in advance
Best Regards
Jean-Guillaume LALANNE
----- Original Message -----
From: "Arnaud Buisine" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 28, 2002 4:10 PM
Subject: RE: Struts and the UML modeling approach
> Did u get an answer ?
> Any way I can help ?
>
> > -----Message d'origine-----
> > De : Jean-Guillaume LALANNE [mailto:[EMAIL PROTECTED]]
> > Envoy� : jeudi 28 f�vrier 2002 10:49
> > � : Struts Users Mailing List
> > Objet : Struts and the UML modeling approach
> >
> >
> > Hi,
> >
> > Has anyone of you managed to integrate a Struts framework in a
> > complete UML
> > approach or methodology ?
> > I am trying to do so but I am getting difficulties to find out the
way I
> > should go from my use cases, my
> > state diagrams and my activity diagrams to the Form Beans, the
Actions
and
> > the navigation (mapping).
> >
> > Any help or feedback would really be appreciated.
> >
> > Thanks in advance.
> >
> > Jean-Guillaume LALANNE