THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Before you can use this result, you will need to register it in your action struts.xml
:
Code Block | ||||
---|---|---|---|---|
| ||||
<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.