problem with response.sendRedirect

Discussions

EJB design: problem with response.sendRedirect

  1. problem with response.sendRedirect (4 messages)

    hai friends,
     I have packaged my application in to EAR file and deployed it in weblogic 6.0 server but the problem is response.sendRedirect() is not working in 6.0 while the same
    code is working fine in weblogic 5.0.So to over come this problem i used jsp:forward tag but some time i am getting
    IllegalStateException and also when i tried to press cancel button (ie history.back(-1)) i am getting jsp source code.

    with reagards
    masam
  2. Put return; statement after every response.sendRedirect() call.
  3. Put return; statement after every response.sendRedirect() call.
    thanks! it works.
  4. Hi,
     To avoid IllegalStateException ensure that the size
    of your output buffer is large enough so it will not
    be flushed prior to any calls to forward action.
    Bye,
    Rama.
  5. Please let me know how did u package an application into EAR? Which IDE? Hoe u deployed it to WLS 6.0