日期:2014-05-20  浏览次数:21387 次

strict servlet API: cannot call getWriter() after getOutputStream()
Weblogic10, JSF1.2一个不能再简单的JSF应用页面报这样的错:何解?
strict servlet API: cannot call getWriter() after getOutputStream()

------解决方案--------------------
strict servlet API: cannot call getWriter() after getOutputStream()
根据这句话的意思

你应该把程序里面的
调用这个方法getOutputStream()
后面的,调用这个方法getWriter()的代码都注释掉。
------解决方案--------------------
getOutputStream()
getWriter()
获得输出流的时候。
两个方法只能用其中的一个不能同时用。