struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From FrenzyGNX <xucheng_...@yahoo.com.sg>
Subject RE: Do u know this bug ?
Date Mon, 23 Jun 2003 10:19:48 GMT
Can you tell me the directory structure of your jsp
files and html files?

 --- Tran Nguyen Thanh Bao <tran@Cybersoft-VN.com>
wrote: > 
> Thank you, i fixed the bug now.
> However, another problem occurs, the jsp file that i
> forward to is a frame of :
> <HTML>
> 	<HEAD>
> 		<META HTTP-EQUIV="Content-Type"
> CONTENT="text/html;CHARSET=Shift_JIS">
> 		<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
> 		<TITLE>WebServe</TITLE>
> 	</HEAD>
> 	<FRAMESET ROWS="8%,*,0" BORDER=0>
> 		<FRAME SRC="menudummy.html" NAME="HEADER"
> SCROLLING=NO>
> 		<FRAME SRC="menuredirect.html" NAME="BODY">
> 		<FRAME SRC="menudummy.html" NAME="FOOTER"
> SCROLLING=NO>
> 	</FRAMESET><noframes></noframes>
> 	<BODY></BODY>
> </HTML>
> 
> These html file are in the same folder with the jsp
> file. And menuredirect.html will contains a menubody
> jsp :
> But they couldnot be found :(
> 
> type Status report
> 
> message /menuredirect.html
> 
> description The requested resource
> (/menuredirect.html) is not available.
> 
> Pls help me to find out the problem, thanks much
> 
> 
> 
> -----Original Message-----
> From: FrenzyGNX [mailto:xucheng_chn@yahoo.com.sg]
> Sent: Monday, June 23, 2003 12:39 PM
> To: Struts Users Mailing List
> Subject: Re: Do u know this bug ?
> 
> 
> It seems that you are doing a forward after
> partially
> populating the response. Below is from Servlet Spec
> 2.3, SRV.8.4 - 
> 
> If output data exists in the response buffer that
> has
> not been commited, the content must be cleared
> before
> the the target servlet's service method is called.
> If
> the response has been commited, an
> IllegalStateException must be thrown.
> 
> That may be relevant. Also search for
> IllegalStateException in the spec may also help.
> 
>  --- Tran Nguyen Thanh Bao <tran@Cybersoft-VN.com>
> wrote: > 
> > Dear all,
> > Does any one know the following kind of bug:
> > After submit and process by Action bean,I print
> the
> > ActionForwaed object:  
> > forward to:
> >
>
ForwardConfig[name=success,path=/pages/jsp/common/CM-001-SearchConditionInput.jsp,redirect=false,contextRelative=false]
> > 
> > StandardWrapperValve[action]: Servlet.service()
> for
> > servlet action threw exception
> > java.lang.IllegalStateException: Cannot forward
> > after response has been committed
> > java.lang.IllegalStateException: Cannot forward
> > after response has been committed 	at
> >
>
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:367)
> > 	at
> >
>
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:355)
> > 	at
> >
>
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1058)
> > 	at
> >
>
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:451)
> > 	at
> >
>
org.apache.struts.action.RequestProcessor.processActionForward(RequestProcessor.java:401)
> > 	at
> >
>
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
> > 	at
> >
>
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420)
> > 	at
> >
>
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:520)
> > 	at
> >
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> > 	at
> >
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > 	at
> >
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
> > 	at
> >
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
> > 	at
> >
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
> > 	at
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> > 	at
> >
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> > 	at
> >
>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > 	at
> >
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
> > 	at
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> > 	at
> >
>
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
> > 	at
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> > 	at
> >
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> > 	at
> >
>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > 	at
> >
>
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
> > 	at
> >
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
> > 	at
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> > 	at
> >
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
> > 	at
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> > 	at
> >
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
> > 	at
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> > 	at
> >
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> > 	at
> >
>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > 	at
> >
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
> > 	at
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> > 	at
> >
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> > 	at
> >
>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > 	at
> >
>
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
> > 	at
> >
>
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
> > 	at java.lang.Thread.run(Thread.java:484)
> > 
> > 
> > Thanks for any advices from u,
> > TRAN
> > 
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> 
=== message truncated === 

__________________________________________________
Do You Yahoo!?
Send free SMS from your PC!
http://sg.sms.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message