Patrick J Kobly wrote:
'twould be useful to be able to get StreamResult to take the
contentType param as an index into the value stack (I have an action
that determines content type based on user input).

If you include
<param name="parse">true</param>
then you should be able to include OGNL expressions (in "${"..."}") in other params. For example I currently have:
<param name="contentType">${media.mimetype}</param>
I would expect ognl expressions like "[4].foo" to work, which is what I think you are looking for...

http://struts.apache.org/2.0.6/struts2-core/apidocs/org/apache/struts2/dispatcher/StrutsResultSupport.html
http://struts.apache.org/2.0.6/struts2-core/apidocs/com/opensymphony/xwork2/util/TextParseUtil.html#translateVariables(java.lang.String,%20com.opensymphony.xwork2.util.ValueStack)

-Dale

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to