Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Before you can use this result, you will need to register it in your action struts.xml:

Code Block
xml
xml
<package name="default" extends="action2struts-default">
	<result-types>
		<result-type name="feed" class="com.acme.result.RomeResult"/>
	</result-types>
	<interceptors>
..

...

This is a simple feed result using Rome as a news feed generator. You might want to make sure you don't generate your feed on every request, but there are lots of ways to deal with such problems. You can also provide provi
de additional setters in the Result to set your feed title, url, etc, but this should suffice for a quickstart.