Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jsp thread: Re: Response has already been commited error


Message #1 by "rayhan muxood" <mirzarayhan@h...> on Mon, 17 Jun 2002 06:04:14
you are probably trying to forward the request to another page? if you are
writing JSPs with no content, just logic, you must make sure that there
absolutely nothing going back to the browser - turn buffering on for that
jsp for one, and also try writing them as follows:

<%@ page language="java" import="blah.blah"%><%

you stuff blah blah blah%>

rather than

<%@ page language="java" import="blah.blah"%>

<%

you stuff blah blah blah%>

as the second one will stuff you up if you try to forward the request

chanoch

----- Original Message -----
From: "rayhan muxood" <mirzarayhan@h...>
To: "Pro_JavaServer_Pages" <pro_jsp@p...>
Sent: Monday, June 17, 2002 6:04 AM
Subject: [pro_jsp] Re: Response has already been commited error


> > > Hi,
> >>
> >>  I have a web app in jsp/java at the following address:
> >>  headrunner.kgbinternet.com/dheapy/index.html
> >>  The problem is that i keep getting a response has already been
> commited
> >>  error when i try to perform a search. Can any one help with why this
> is
> >>  happening?
> >>
> >>  Thanks
>
>
>
> yo lvmpd !
>
> dude, just separate your Jsp from the graphical content and include that
> jsp in your graphical content..got it? no? ok...........
>
> make a separate file of html (with your javascript in it), make another
> separate file of your jsp logic......and after that, include your jsp file
> into the html file that already has javascript in it. In that way you'll
> have every thing with you once you load the page, the jsp, the
> j/javascript, and the html.................
> i had this problem once my self..and i bet it'll work....if it
> dont,,,,,,just contact me. i'm sure i could help you
>
> adios
> rayhan


  Return to Index