• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Generate a Web Diagram for Struts2 application

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How can I generate a web diagram for a struts2 application?

 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
I do some of my very best work in water. Like this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic