RE: java.lang.IllegalStateException: Already called getOutputStream()FINAL
It's really strange. I've found the problem. If the redirect page is a JSP or Servlet (Action included) the tag works well, but if the redirect page is a HTML, then I've the problem described here. Someone know the reason? I will change any html to jsp, but I'm interested in the cause of the problem. Thanks to all!! -Mensaje original- De: Miguel Angel Mulero Martinez [mailto:[EMAIL PROTECTED]] Enviado el: miércoles, 28 de agosto de 2002 10:33 Para: Struts Users Mailing List Asunto: RE: java.lang.IllegalStateException: Already called getOutputStream() Yes, its really strange. Do you use Tomcat 4.0.3 whith jdk 1.4? Thanks!! -Mensaje original- De: Rosdi bin Kasim [mailto:[EMAIL PROTECTED]] Enviado el: miércoles, 28 de agosto de 2002 10:18 Para: Struts Users Mailing List Asunto: Re: java.lang.IllegalStateException: Already called getOutputStream() I use CheckLogonTag which was copy-pasted from struts-example. The code returns SKIP_PAGE when authentication failed instead of SKIP_BODY like yours.. It works fine for me. - Original Message - From: Miguel Angel Mulero Martinez [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, August 28, 2002 2:41 PM Subject: java.lang.IllegalStateException: Already called getOutputStream() I'm using the CheckLogonTag with my application. The tag works perfectly. If it returns SKIP_BODY (that happens when the user is not authenticated) I receive an java.lang.IllegalStateException: Already called getOutputStream(). If the user is authenticated, then the tag returns an EVAL_PAGE and the page loads perfectly. Someone can help me? Thanks in advance!! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: java.lang.IllegalStateException: Already called getOutputStream()
Just a place where to look for, you can not get more than one outputStream (PrintWritter) from a servlet, i.e. as a JSP has its own OutputStream you can not create a new one. Use the PrintWritter already iun the JSP and do not create a new one. Adolfo. From: Miguel Angel Mulero Martinez [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: java.lang.IllegalStateException: Already called getOutputStream() Date: Wed, 28 Aug 2002 08:41:48 +0200 I'm using the CheckLogonTag with my application. The tag works perfectly. If it returns SKIP_BODY (that happens when the user is not authenticated) I receive an java.lang.IllegalStateException: Already called getOutputStream(). If the user is authenticated, then the tag returns an EVAL_PAGE and the page loads perfectly. Someone can help me? Thanks in advance!! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: java.lang.IllegalStateException: Already called getOutputStream()
I use CheckLogonTag which was copy-pasted from struts-example. The code returns SKIP_PAGE when authentication failed instead of SKIP_BODY like yours.. It works fine for me. - Original Message - From: Miguel Angel Mulero Martinez [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, August 28, 2002 2:41 PM Subject: java.lang.IllegalStateException: Already called getOutputStream() I'm using the CheckLogonTag with my application. The tag works perfectly. If it returns SKIP_BODY (that happens when the user is not authenticated) I receive an java.lang.IllegalStateException: Already called getOutputStream(). If the user is authenticated, then the tag returns an EVAL_PAGE and the page loads perfectly. Someone can help me? Thanks in advance!! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: java.lang.IllegalStateException: Already called getOutputStream()
I think I haven't any PrintWriter open. The first lines of my JSP are: %@ page language=java % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % %@ taglib uri=/WEB-INF/log.tld prefix=log % %@ taglib uri=/WEB-INF/login.tld prefix=login % login:checkLogon / log:debug category=jsp.noticias.busquedaNoticias message=busquedaNoticiasJSP iniciado / html:html head ... Some idea? -Mensaje original- De: Adolfo Miguelez [mailto:[EMAIL PROTECTED]] Enviado el: miércoles, 28 de agosto de 2002 10:09 Para: [EMAIL PROTECTED] Asunto: Re: java.lang.IllegalStateException: Already called getOutputStream() Just a place where to look for, you can not get more than one outputStream (PrintWritter) from a servlet, i.e. as a JSP has its own OutputStream you can not create a new one. Use the PrintWritter already iun the JSP and do not create a new one. Adolfo. From: Miguel Angel Mulero Martinez [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: java.lang.IllegalStateException: Already called getOutputStream() Date: Wed, 28 Aug 2002 08:41:48 +0200 I'm using the CheckLogonTag with my application. The tag works perfectly. If it returns SKIP_BODY (that happens when the user is not authenticated) I receive an java.lang.IllegalStateException: Already called getOutputStream(). If the user is authenticated, then the tag returns an EVAL_PAGE and the page loads perfectly. Someone can help me? Thanks in advance!! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: java.lang.IllegalStateException: Already called getOutputStream()
Yes, its really strange. Do you use Tomcat 4.0.3 whith jdk 1.4? Thanks!! -Mensaje original- De: Rosdi bin Kasim [mailto:[EMAIL PROTECTED]] Enviado el: miércoles, 28 de agosto de 2002 10:18 Para: Struts Users Mailing List Asunto: Re: java.lang.IllegalStateException: Already called getOutputStream() I use CheckLogonTag which was copy-pasted from struts-example. The code returns SKIP_PAGE when authentication failed instead of SKIP_BODY like yours.. It works fine for me. - Original Message - From: Miguel Angel Mulero Martinez [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, August 28, 2002 2:41 PM Subject: java.lang.IllegalStateException: Already called getOutputStream() I'm using the CheckLogonTag with my application. The tag works perfectly. If it returns SKIP_BODY (that happens when the user is not authenticated) I receive an java.lang.IllegalStateException: Already called getOutputStream(). If the user is authenticated, then the tag returns an EVAL_PAGE and the page loads perfectly. Someone can help me? Thanks in advance!! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]