This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Generate a Web Diagram for Struts2 application

 
Peter Mest
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I generate a web diagram for a struts2 application?

 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Depends. I've created simple S2 config file slurpers that spit out a DOT file suitable for GraphViz and/or a yEd XML file. Using something like JRuby or Groovy should make it just dozens lines, depending on how functional you want it to be.

What's trickier is grabbing all the possible links to S2 actions inside JSP--the tags are easy, the JavaScript for Ajax-y stuff can be trickier.
 
Peter Mest
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David Newton wrote:Depends. I've created simple S2 config file slurpers that spit out a DOT file suitable for GraphViz and/or a yEd XML file. Using something like JRuby or Groovy should make it just dozens lines, depending on how functional you want it to be.

What's trickier is grabbing all the possible links to S2 actions inside JSP--the tags are easy, the JavaScript for Ajax-y stuff can be trickier.


Could you tell how can I generate it? I downloaded JRuby, but I'm looking and I don't know what to do.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just read in the config file(s), build a data structure representing the config, and output a DOT file for GraphViz. It also depends on how your app is set up--for example, the last place I consulted at used wildcard configuration, so it wasn't possible to build the tool the same way.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic