struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Costlow" <ECost...@norvax.com>
Subject S2 XSLT Result Content-Type
Date Mon, 09 Apr 2007 15:14:30 GMT
I have a Struts2 action that uses an XSLT result to generate a final
XHTML document that gets sent to the client. This action is sending the
content-type of "text/xml" so IE6 is displaying the information as an
XML tree, instead of showing a rendered html document.

<result name="success" type="xslt">
  <param name="location">/xsl/defaults.xsl</param>
  <param name="matchingPattern">^/result/[^/*]$</param>
  <param name="exludingPattern">1
    .*(locale).*
  </param>
</result>

Is there a way that I can combine this result with an HttpHeader result
to make sure that the content-type header is "text/html?" Or, what is
the recommended way of controlling this header?

Thanks,
  Erik

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message