xml and json are the output types (the response sent to the client). JSP and FreeMarker are the result types, which are mapped by Convention. Check the Convention documentation for details on how the templates are found (same rules apply for jsp(s) and ftl(s))
musachy On Tue, Mar 10, 2009 at 4:52 PM, wkbutler <[email protected]> wrote: > > Hi - > Has anyone had luck using .ftl templates with the struts2-rest-plugin? I > see that .ftl is mapped by the struts-default.xml in struts-core, and > somehow Convention enables this mapping itself, although I don't quite get > how that happens. > > The REST plugin resolves .jsp (or is Convention doing that..?) but I'm not > sure how, there is no explicit mapping for it in plugin-struts.xml, as there > are for its other supported extensions like xml and json. I'd imagine that > a .ftl result should resolve in a similar way to a .jsp - some kind of > pass-through to struts-core - for me though, requests to *.ftl result in a > 404 when using the rest plugin. > > Anybody get this to work? > Thanks - > Kent > -- > View this message in context: > http://www.nabble.com/Mapping-FreeMarker-results-in-struts-rest-plugin-tp22443339p22443339.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- "Hey you! Would you help me to carry the stone?" Pink Floyd --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

