struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Krah <tk...@fachschaft.imn.htwk-leipzig.de>
Subject FilterDispatcher - ContentType not set, how to set in to text/html?
Date Fri, 17 Oct 2008 12:57:23 GMT
Hi.
You can configure the action to set the result type to e.g. plain text ( 
http://struts.apache.org/2.x/docs/result-types.html).

How to tell the action, its content type is text/html?
I am calling my action 

<action name="registerStatic" class="com.opensymphony.xwork2.ActionSupport">
	<result name="success">/WEB-INF/view/consumer/register.jsp</result>
	<result name="input">/WEB-INF/view/consumer/register.jsp</result>
</action>

and the http header misses the contentType.
I am using struts-2.0.11.2.

-- 
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html

Really, I'm not out to destroy Microsoft. That will just be a 
completely unintentional side effect."
	-- Linus Torvalds

Mime
View raw message