aspose file tools
The moose likes Struts and the fly likes How to read the details of already parsed struts-config Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "How to read the details of already parsed struts-config" Watch "How to read the details of already parsed struts-config" New topic
Author

How to read the details of already parsed struts-config

Indresh Chadha
Greenhorn

Joined: Oct 15, 2008
Posts: 4
Hi,

The ActionServlet whilie initializing, parses the configuration files i.e struts-config.xml and stores the corresponding parsed data. If in my application I want to access those objects created by the Digester parser, how can I do that? For example, I want to read all the attributes of an Action tag: path, input, name, scope, etc.

Thanks,
Indresh
Jimmy Clark
Ranch Hand

Joined: Apr 16, 2008
Posts: 2187
Study org.apache.struts.config.ActionConfig class
Indresh Chadha
Greenhorn

Joined: Oct 15, 2008
Posts: 4
Hi James,

Thanks for the reply.
I was able to figure out that the ActionConfig class stores all the attributes for any Action. Now in my application, if I need to access the ActionConfig object, how can I do that? Is there any method in the ActionServlet class which I can use?
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to read the details of already parsed struts-config
 
Similar Threads
How to load resources from my own file in struts
Can we see parsed XML
RE-POST: How to read the details of already parsed struts-config
retrieving data from SAX parser
using html tags in field error text - struts2