Setting the content-type of a response in Struts2
Posted
by Thomas
on Stack Overflow
See other posts from Stack Overflow
or by Thomas
Published on 2009-11-04T05:25:50Z
Indexed on
2010/03/18
20:01 UTC
Read the original article
Hit count: 255
So, I'm using freemarker templates with Struts2 to formulate my responses. However, since I'm trying to use taconite as well, I need the response to be sent with the content type of "text/xml". I can't seem to find a way to use freemarker directives to set the content type, and I am not well versed enough in struts to know if there is a way to do it through that.
So, how should I go about this?
© Stack Overflow or respective owner