Problem setting contentType to "text/xml"

Anna Putnam <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Ok, I must be missing something so I apologize if this is a stupid question....

My application is built using Struts 2, Sitemesh and Freemarker.

I am trying to generate a XML file using a ftl file.  I cannot seem to get the contentType to be "text/xml".

I tried including:
ServletActionContext.getResponse().setContentType("text/xml");

In my action but no luck?   Any suggestions? Thanks in advance.

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

_______________________________________________
FreeMarker-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemarker-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.