def strutsConfig = new File("path/to/struts-config.xml")
def fromXml = new XmlParser().parse(strutsConfig)
def writer = new StringWriter()
def toXml = new MarkupBuilder(writer)
// This simply dumps the XML to stdout, you could of course write to an actual file as well
This little snippet creates a <bean name="/foo" class="bar.Baz"/> for every <action path="/foo" type="bar.Baz"/> element in the struts-config.xml file, using a few neat Groovy tricks (GPath, closures, GroovyMarkup).
Still, you could do better. You could use a hook such as BeanFactoryPostProcessor that parses the Struts config and dynamically creates beans corresponding to the actions, or even write an XSD that allows Spring to interpret the Struts config file as a context file directly. There's an entry in the SpringIDE blog that shows how you could write a namespace that works in German, so for example <bean/> becomes <bohne/> and so on. That principle might be applicable to this context too.