0
A
回答
2
是的,你不应该有任何问题,只是在发送时定义你的行动enconding如果您正在使用流结果类型,则流视图。
STRUTS.XML
<result name="xml" type="stream">
<param name="inputName">inputStream</param>
</result>
ACTION
setInputStream(new ByteArrayInputStream(xmlObject.toString().getBytes("UTF-8")));
return "xml";
相关问题
- 1. Struts2请求字符编码
- 2. 编码POST请求
- 3. 编码GET请求
- 4. 编码POST请求
- 5. XMLHttpRequest请求标头编码
- 6. 编码发布请求后
- 7. Web请求编码问题
- 8. 邮差请求编码
- 9. 舞者请求params编码
- 10. 的Python POST请求编码
- 11. AJAX发布请求编码
- 12. Struts2 ognl执行请求方法
- 13. Struts2获取原始请求URI
- 14. Struts2的获取请求对象为空
- 15. 请求xml中的UTF-8编码在linux中的soap请求
- 16. 如何编码令牌的OAuth 2.0请求的POST请求?
- 17. 未知编码:IDNA在Python请求
- 18. Spring MVC请求编码问题
- 19. 浏览器编码HTTP请求
- 20. POST JSON请求中的字符编码
- 21. JBoss AS 7.1 - 请求参数编码
- 22. Android httpclient(请求)编码问题
- 23. Python HttpConnection请求编码错误
- 24. HTML请求参数的编码
- 25. Google Charts cache地理编码请求
- 26. BitTorrent peer_id编码格式,无效请求
- 27. 嵌套文本编码请求
- 28. java RestTemplate GET请求与编码的URL
- 29. 处理空请求体(protobuf3编码)
- 30. ASP.NET MVC 2 - 请求编码问题