| JSP MoDisco discoverer with JSP files from Struts Project [message #857259] |
Thu, 26 April 2012 07:52  |
Victor Pavon Messages: 13 Registered: April 2012 |
Junior Member |
|
|
Hello,
I'm working with JSP Modisco Discover, with JSP files that use Struts taglib. In the output model the use of tag is represented as element of type JSPAction, but I'd like that this tag was represented as element of JSPAction subclass like JSP tag is represented like JSPStdAction. I think in two different alternatives. The first one modifies the JSP discoverer and the second one use ATL transformations from JSP MoDiscoMetamodel to a new JSPStruts Metamodel.
I'd like to know which solution you think is better.
Thank you.
[Updated on: Thu, 26 April 2012 07:52] Report message to a moderator
|
|
|
| Re: JSP MoDisco discoverer with JSP files from Struts Project [message #858702 is a reply to message #857259] |
Fri, 27 April 2012 04:55   |
Fabien Giquel Messages: 134 Registered: July 2009 |
Senior Member |
|
|
Hi,
i agree with the second alternative : define some JSPStruts metamodel, which would extend the JSP metamodel, and then define some transformation from JSP metamodel to JSPStruts metamodel, eg with ATL.
This alternative is modular and your new tooling will be opened to take in account some new JSP discoverer release.
best regards,
Fabien.
----------------------------------------------------
Fabien GIQUEL
R&D Engineer
Mia-Software
4, rue du Château de l'Eraudiere
44324 NANTES CEDEX 03
----------------------------------------------------
|
|
|
| Re: JSP MoDisco discoverer with JSP files from Struts Project [message #859324 is a reply to message #858702] |
Fri, 27 April 2012 11:21  |
Victor Pavon Messages: 13 Registered: April 2012 |
Junior Member |
|
|
Hi,
Thank Fabien for your answer. I propose the first solution, because in the project where I'm working before analyze JSP files of struts project we worked with the struts-config file. First we represent this file using the MoDisco XML Metamodel and then we transform this using ATL rules to our Struts metamodel, but sometimes the transformation was complex and difficult to understand. To solve this problem we decided to develop a new discoverer like MoDisco WebApp discover. Now we had more less the same problem and we have to decide between what I said in the previous post: create a new discover or use model transformation. I think that you are right and is better uses transformations than create a new discoverer, because the maintenance of the transformation look less difficult than the discoverer maintenance.
Best regards,
Víctor.
|
|
|
Powered by
FUDForum. Page generated in 0.03161 seconds