Hi,
    One JSF scipt has line like

                        <h:commandButton value="Generate Report"
id="Button2" action="#{interactiveReportsController.send}"/>
       -------
                A simple interactiveReportController.java looks like

public class InteractiveReportsController  
{
    public void send()
    {
        System.out.println("in interactive reports controller");
        FacesContext context = FacesContext.getCurrentInstance();
                ExternalContext ex = context.getExternalContext();
                HttpSession session = (HttpSession)ex.getSession(false);
                
                System.out.println("after getting the externa
conttext");
                try{
                        ex.dispatch("/Reports/MorningCheatSheet"); //
this is a sevlet
                }
                catch(Exception e){
                        System.out.println("exception while forwarding
to report servlet-"+e.getMessage());
                        e.printStackTrace();
                }
    }

}
                         When I ran this in weblogic I am getting error
message 

<Jul 7, 2005 1:32:47 PM EDT> <Error> <HTTP> <BEA-101046>
<[ServletContext(id=332
9988,name=adminweb-beta,context-path=/racs2)] 
Cannot forward a response that is already committed
java.lang.IllegalStateException: Cannot forward a response that is
already commi
tted
        at
weblogic.servlet.internal.RequestDispatcherImpl.forward(Ljavax.servle
t.ServletRequest;Ljavax.servlet.ServletResponse;)V(RequestDispatcherImpl
.java:12
5)

        Can anybody have some that why it is telling response is already
committed.
 
Thanks & Regards,
Varadaraja Polanki



**********************************************************************
Please be aware that, notwithstanding the fact that the person sending
this communication has an address in Bear Stearns' e-mail system, this
person is not an employee, agent or representative of Bear Stearns.
Accordingly, this person has no power or authority to represent, make
any recommendation, solicitation, offer or statements or disclose
information on behalf of or in any way bind Bear Stearns or any of its
affiliates.
**********************************************************************

Reply via email to