Yup, but as mentioned in the original email I'm not sure where to construct the SyndFeed object. Doing it in the content handler doesn't really make sense, as there's no generic way to map objects to an RSS/Atom feed. My basic idea is that the ContentTypeHandler would expect to be passed a SyndFeed object as the model to write to the output stream. The bit I'm having trouble figuring out is how the action would know that the model should be a SyndFeed object - is there a standard way to detect what extension was used when calling the action? (I could parse it from request.getRequestURI(), but that seems a bit ugly).
Bill On Wed, Jan 28, 2009 at 6:08 PM, Dave Newton <newton.d...@yahoo.com> wrote: > Have you considered writing a custom content type handler? Content type > handlers are chosen based on URL extension. > > Check the "Custom ContentTypeHandlers" section: > > http://struts.apache.org/2.x/docs/rest-plugin.html -- Bill Stilwell - http://www.marginalia.org/ bill.stilw...@gmail.com --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org