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

How to read the details of already parsed struts-config

 
Indresh Chadha
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Study org.apache.struts.config.ActionConfig class
 
Indresh Chadha
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic