• 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

List of all action mappings in struts config.xml

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a struts-config.xml file with
<action-mappings>
<action path="/path1" ....></action>
<action path="/path2" ....></action>
<action path="/path3" ....></action>
</action-mappings>

Is there a way I can get a list of all the paths I have mentioned in my struts config file?

In the above case, I want to dynamically get path1,path2 and path3 as a complete listing of the mappings I have added.

Whenever I make any changes to the mapping, say, a deletion
<action-mappings>
<action path="/path2" ....></action>
<action path="/path3" ....></action>
</action-mappings>

I want to dynamically get path1 and path3 as a complete listing of the mappings I have added.

IS this possible at all?
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This question was answered recently in this thread.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic