aspose file tools*
The moose likes Struts and the fly likes List of all action mappings in struts config.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "List of all action mappings in struts config.xml" Watch "List of all action mappings in struts config.xml" New topic
Author

List of all action mappings in struts config.xml

Lakshmi Ashok
Greenhorn

Joined: Jun 06, 2006
Posts: 5
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?
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
This question was answered recently in this thread.


Merrill
Consultant, Sima Solutions
 
 
subject: List of all action mappings in struts config.xml