Timed redirection/forward in jsp

i am trying to forward the request/response to another page after a particular peroid of time say 10 seconds. I need to output the content and wait for 10 seconds till forward happens. I think you got , what i need to do ...
i know a forward cant happen after buffer is flushed ..
plz suggest a way
SHERIN :)
THIS IS PART OF JSP CODE
if(reportStat.equals("first"))
%>
<FORM action="/IntranetSystem/report" method="post">
     <CENTER>
          <b><FONT color="red">ENTER YOUR DAILY REPORT</FONT></b><br><br><br>
     <TEXTAREA rows="10" name="report" cols="50" ></TEXTAREA>
     <br><br>
     <INPUT type="submit" value=" submit "/>
     <INPUT type="hidden" name="userid" value="<%=userId%>" />
</FORM>
<%     }else if (reportStat.equals("success")){   %>
          <CENTER>
          <h3> DAILY REPORT UPDATED </h3><br><br>
          <b><FONT color="red">Redirecting to Home page in 10 seconds...</FONT></b>
          </CENTER>
          <%
               out.flush();
               out.append('x');
               Thread.sleep(10000);
               out.println("redirecting..");
          %>
          <jsp:forward page="inbox.jsp"> // THIS CAUSES ILLEGALSTATEEXCEPTION
          <jsp:param value="<%=userId%>" name="userid"/>
          </jsp:forward>
<%     }else{    %>
          <CENTER>
          <FONT color="red">
          <h3> DAILY REPORT UPDATE FAILED </FONT><br>check todays attendance status . you may not have signed in</h3><br><br>
          <FONT color="yellow"><b>Redirecting to Home page in 10 seconds... </b></FONT>
          </CENTER>
          <%
               out.flush();
               out.append('x');
               Thread.sleep(10000);
               out.println("redirecting..");
          %>
          <jsp:forward page="inbox.jsp">
          <jsp:param value="<%=userId%>" name="userid"/>
          </jsp:forward>
<% } %>

But what is the requirement. I dont think really u r going to do some thing in 10seconds.
u just want to do that,coz u want to show some thing fancy ,to the user. ..lol :)
That will slightly affect the performence,no doubt on that.

Similar Messages

  • Conditional forward in JSP

    Following is my jsp page. I am trying to forward to another jsp depending on the conditions.
    <%@ taglib uri="struts-logic" prefix="logic" %>
    <%@ page contentType="text/html;charset=UTF-8" language="java" %>
    <%
         String u = (String)session.getAttribute("userID");
         String seibel = (String)session.getAttribute("seibel");
        System.out.println(u);
        System.out.println(seibel);
         if(seibel.equals("true"))
          {%>
          <jsp:forward page = "AutoLogin.jsp"/>;
          <%}     
         else
         %>
           <logic:redirect forward="logon"/> ;     
    <%
    %>When the if condition fails, the else part does not get executed. The error I get is as follows.
    [exec] <Dec 28, 2007 11:48:13 AM IST> <Error> <HTTP> <101017> <[ServletContext(id=7535615,name=csr-gema,context-path=)] Root cause of ServletException
    [exec] java.lang.NullPointerException
    [exec] at jsp_servlet.__forwardtogema._jspService(__forwardtogema.java:107)
    [exec] at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    [exec] at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1094)
    [exec] at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:437)
    [exec] at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:481)
    [exec] at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:319)
    [exec] at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5626)
    [exec] at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:685)
    [exec] at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3213)
    [exec] at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2555)
    [exec] at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:251)
    [exec] at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:219)
    [exec] >
    Any inputs? Please reply.

    As mentioned, seibel must be null. Change your code so it's like this
         if(seibel == null || seibel.equals("true"))
          {%>
          <jsp:forward page = "AutoLogin.jsp"/>;
          <%}     
         else
         %>
           <logic:redirect forward="logon"/> ;     
    <%
    }However depending on what you are trying to do this may just hide your problem by
    short circuiting when seibel is null. If seibel should not be null then your problem is elsewhere.

  • Urgent....How can i redirect to my jsp page from servlet in init() method..

    How can i redirect to my jsp page from servlet in init() method..Becoz that servlet is calling while server startsup..so im writing some piece of code in init() method..after that i want to redirect to some jsp page ...is it possible?
    using RequestDispatcher..its not possible..becoz
    RequestDispatcher rd = sc.getRequestDispatcher("goto.jsp");
    rd.foward(req,res);
    Here the request and response are null objects..
    So mi question can frame as how can i get request/response in servlet's init method()..

    Hi guys
    did any one get a solution for this issue. calling a jsp in the startup of the servlet, i mean in the startup servlet. I do have a same req like i need to call a JSP which does some data reterival and calculations and i am putting the results in the cache. so in the jsp there in no output of HTML. when i use the URLConnection i am getting a error as below.
    java.net.SocketException: Unexpected end of file from server
    at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:707)
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:612)
    at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:705)
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:612)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
    nection.java:519)
    at com.toysrus.fns.alphablox.Startup.callJSP(Unknown Source)
    at com.toysrus.fns.alphablox.Startup.init(Unknown Source)
    at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
    so plz do let me know how to call a jsp in the start up of a servlet.
    Thanks
    Vidya

  • Redirect to main jsp when the session expires

    Hi,
    I have a jsp say mainframe.jsp in which I have two frames each having a jsp page say child1.jsp and child2.jsp.
    When the session expires and I when i try do any changes in child2.jsp or child1.jsp, the page redirects to login page and when I login successfully, I am getting redirected to child2.jsp or child1.jsp respectively. But I want it to be redirected to mainframe.jsp.
    Any help is greatly appriciated.
    Thanks in advance.
    Vinod

    I think I am not clear.
    When I try to login after session expiry, I am redirected to child jsp.
    But what I want is that I should be redirected to mainfram.jsp page.
    url in the address shows : ../mainframe.jsp?ID=******
    When my seesion is expired and I try do some manipulation in child1.jsp (which is inside a frame of my mainframe.jsp). it is redirected to login page and from there to child1.jsp instead of mainframe.jsp
    Now the address url shows : ../child1.jsp?ID=********* because of which I am not able to see child2.jsp along with child1.jsp
    What I want : ../mainframe.jsp?ID=********
    this is the code I am using !!
    String destPage = request.getRequestURI();
    response.sendRedirect("../redirect.jsp?dest=" + URLEncoder.encode(destPage));

  • Logon Par - redirect to new JSP

    Hi,
    I've to change the portal logon page.
    My requirement is to redirect the logon page to test.jsp page.
    from umLogonPage.jsp i'm trying to redirect to test.jsp in form method.
    <FORM name="logonForm" method="post" action=test.jsp>
    but the URL is not proper.
    How can i pass the absolute URL for this.
    Thanks and Regards
    Puneet

    Puneeth,
    Its possible to  redirect to a JSP page from portal logon Screen.
    There are several ways of doing this:-
    1. Create a separate portal component (JSP Dynpage) and set the authscheme property is anonymous (because you are calling a portal component from outside) ie.
    <property name="AuthScheme" value="anonymous" />
    You can follow this method If JSP componentu2019s functionality is Independent than any login functionality.
    2. You can modify the SAPMLogonLogic.java file which contains flow logic of all jsp files. The SAPMLogonLogic file is present umelogonbase.jar.
    The umelogonbase.jar is under lib folder of the logon par file. Just extract the logon par file and navigate to PORTAL-INF -> lib to get the umelogonbase.jar
    Ram

  • SSO problem when redirecting from a JSP page to an external application

    Hi,
    I try to make a redirect from a JSP page (that is under a SSO protected application on iAS) to another page from another application, on an external iAS server, also protected by (a different) SSO. After the redirection is done, the login window appears, I enter the login name and the password and after that I obtain the followin error:
    "Oracle SSO Failure - Unable to process request
    Either the requested URL was not specified in terms of a fully-qualified host name or OHS single sign-on is incorrectly configured.
    Please notify your administrator."
    In the logs og the server I found the following:
    [OSSO] W05: Requested URL is not specified in terms of fully-qualified host name or invalid SSO partner configuration. Host from request
    mycompany.com:7777, registered host 144.147.147.200:7778.
    (the ip address being the address of the mycompany.com host).
    Any clue about this? Thanks a lot in advance!
    Regards,
    Marinel

    Hi Carlo,
    Thanks for your answer.
    The JSP original page is not added as a partner application to the second SSO server.
    The idea was that the user should insert first the login name/passwd for the first server, after being logged in, then redirected to the second application (on a different server), insert the login name/password for the second application and then load the 2nd application page. It seems that is not working after inserting the password for the 2nd application.
    Coming to a more general question that could help me to avoid this complicated approach: is it possible to have two different applications deployed on two different iAS servers and the two applications to use the same SSO (let's say the one from the first iAS server)? I have to mention that the process scenario is the following: the user load a page from the first application (protected by SSO), then, after successfull login and some processing in the first app, he will be automatically redirected by the first app to the second application, on the second server. I want to have also the second application, on the 2nd server, protected by SSO (ideally would be the same SSO as the first one!). Ideally the scenario would be: if it is redirected from the first app and the user is already authenticated, the automatic redirection should be done transparently for the user (without enetring the password again). If the user goes directly from the browser to a page of the second app, the SSO login window should be displayed and the user should provide his password.
    Is such a scenario possible on two apps deployed on two different servers?!
    Thanks a lot again!
    Regards,
    Marinel

  • Redirect to error.jsp

    Hi,
    I am getting Http 500 Internal server error from tomcat. I have follwing Jsp fragment, that is throwing this error.
    <c:if test="${ empty userId}">
         <c:forEach var='thisCookie' items='${cookie}'>
         <c:if test='${thisCookie.key == "NWPUSERNAME"}'>
    <c:set target='${SharedCookieBean}' property='val' value='${thisCookie.value.value}' />
              <c:if test='${SharedCookieBean.valid == "true"}'>
         <c:set target='${UserBean}' property='userId' value='${SharedCookieBean.username}' />                
                   <c:if test='${SharedCookieBean.fflag == "true"} || ${UserBean.userFlag == "true"}'>
                   <c:redirect url="error.jsp?error=2" />               
                   </c:if>
         <c:set target='${UpdateUserAuthenticatedBean}' property='userId' value='${SharedCookieBean.username}' />
    <c:set target='${SetSessionParamsBasedOnUserIdBean}' property='req' value='${pageContext.request}' />
    <c:set target='${SetSessionParamsBasedOnUserIdBean}' property='userId' value='${SharedCookieBean.username}' />
    </c:if>
    </c:if>
    </c:forEach>
    </c:if>
    This happend when I give a bogus userid say xdf which is NOT present in the database during the authentication. server sends error 500, which i like to suppress and rather redirect to error.jsp(My redirect attempt in above code is NOT working). It does not redirect to error.jsp. It shows errro 500 Internal server error in the browser.
    any help in redirecting it correctly to error.jsp??
    pp

    My guess would be there is an exception happening in the database lookup code. If you set a generic errorPage for your jsp page, you should be able to redirect properly.
    Where does this occur - when you set the SharedCookieBean value?
    You might also try the <c:catch> tag. Put it around the bit of code creating the error.
    eg...
    <c:catch var="except">
        // the bit of code that creates the exception
       <c:set target='${SharedCookieBean}' property='val' value='${thisCookie.value.value}' />
    </c:catch>
    <c:if ${not empty except}">
      An exception occured - <c:out value="${except.message}"/>
    </c:if>Cheers,
    evnafets

  • How to forward a JSP page to another dynamically generated JSP

    Hi gurus,
    I have a problem with forwarding a JSP page, to another dynamic jsp page.
    I have to forward a jsp page to (say X1 ) to another JSP page (say X2).
    Iam choosing the name of the page X2, dynamically from a list of JSP pages in a directory depending upon some parameters.
    Here is my code for ur better understanding...
    <java>
    // this gives me the name of the page X2 to which my page X1 should be forwarded.
    <TR> <TD><%=request.getParameter("codeins")%></TD></TR>
    <%
    if(request.getParameter("codeins").length() != 0)
    %>
    // if i use this forward tag i get the error
    <a href=" 
                <jsp:forward page=Ins/<%=request.getParameter("codeins")%">.jsp">
         <jsp:param name="a" value="<%=request.getParameter("a")%>" />     
         <jsp:param name="b" value="<%=request.getParameter("b")%>" />
         <jsp:param name="c" value="<%=request.getParameter("c")%>" />
         <jsp:param name="p" value="<%=request.getParameter("p")%>" />
         <jsp:param name="q" value="<%=request.getParameter("q")%>" />
    </jsp:forward>">GNSS Instantiation</a>
    <%
    else {
    out.println("No entry in the database! ");
    } %>
    </java>
    I am getting the exceptions like
    <java>
    org.apache.jasper.JasperException: /Newspg.jsp(162,67) equal symbol expected
         at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:94)
         at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:428)
         at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:126)
         at org.apache.jasper.compiler.Parser.parseAttribute(Parser.java:169)
         at org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:136)
         at org.apache.jasper.compiler.Parser.parseForward(Parser.java:517)
         at org.apache.jasper.compiler.Parser.parseAction(Parser.java:661)
         at org.apache.jasper.compiler.Parser.parseElements(Parser.java:803)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:122)
         at org.apache.jasper.compiler.ParserController.parse(ParserController.java:199)
         at org.apache.jasper.compiler.ParserController.parse(ParserController.java:153)
         at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:227)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:369)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
         at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:430)
         at org.apache.jsp.SPVariablesg_jsp._jspService(SPVariablesg_jsp.java:425)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         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:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
         at java.lang.Thread.run(Thread.java:534)
    </java>
    please help me out to let me know, where iam doing wrong.
    Thanx
    mark.

    Hi,
    in reference to the above subject i did like to know what is wrong in the following code of mine:
    <%
         String name = "admin"; // this is line which is being indicated in error message
         int password = 4589;
    %>
    <!-- <script language="javascript" src="init.js"></script> -->
    <head>
    <script>
    function checking()
         if name != document.test.user.value || password != document.test.password.value)
              alert("ur not authorised to view the requested url");
              forward("Firstpage.jsp");
    %>
    </script>
    its says :
    org.apache.jasper.JasperException: /webpg/Dec2Firstpage.jsp(4,21) equal symbol expected
    any solutions?
    thanx in advance

  • How to redirect to error.jsp, if servlet encounters error ??

    how do i redirect to error.jsp file , if there is some error in my servlet file.
    can i user response.sendRedirect() in catch clause or i should use RequestDispatcher in catch clause ??

    You can use either way to redirect to error.jsp. If you want to pass your Request, response from servelet to JSP, then better to go for RequestDispatcher.

  • Managing URL redirects/forwards

    My business client has a requirement whereby they wish to manage all URL redirect/forwards themselves. They wish to make changes on a regular basis without involving the tech team. Short of giving them access to the Sun Web Server 7.0 Management GUI, I was wondering if there was another means for us to meet their requirements.

    Yeah, I've looked at the lookup() option. Unfortunately I seem to have neglected to mention that the business team wants to make these changes directly into production. This method obviously poses some risks since an incorrect URL could break production. I could get my development team to write a Java App that can manage the URLs and also check the validity of the URLs, however I guess what I was looking for was an "out-of-the-box" option, a sort of content management system that would interact with the WebServer.

  • Does control comes back to servlet after redirecting to a jsp page.

    Hi
    I have a query on request dispatcher.
    I have redirected control to a jsp page in my java class as below.
    HttpServletRequest request=null;
         HttpServletResponse response=null;
         RequestDispatcher requestDispatcher = request.getRequestDispatcher("a.jsp");
         try {
              requestDispatcher.forward(request,response);
         } catch (ServletException e) {
              System.out.println("success");
              e.printStackTrace();
         } catch (IOException e) {
              System.out.println("success 1");
              e.printStackTrace();
         finally
              System.out.println("success 2");
         System.out.println("success 3");
         Jsp page is successfully diaplayed in browser.
    but when i see my console window in eclopse IDE...
    I does not diaply Success 2 / Success 3....
    Please help me..
    thanks

    This is an eclipse/server question... not really a java question.
    I have NO IDEA how eclipse interplays with you're (unspecified) server.
    I can tell you that typically the standard output and error streams of the J2EE server are redirected by the server startup script to a file in the deployed applications root directory... So have a look around.
    Edited by: corlettk on 16/05/2008 04:49 - Oops.

  • Timed access restriction in jsp

    Dear Friends,
    While working on a website development, I've faced the following problem:-
    I want to display a Webpage (written in HTML and JSP) in between a particular timing. [e.g. the page will be displayed in between 09:45 AM to 11:30 AM and again from 01:30 PM to 02:45 PM]. But except that particular duration, that page won't be displayed. Rather then an error page will be generated stating that you accessed that page in wrong time!! This task is essential for my project, but actually I don't know how to do it. Can anyone help me please!!! I'll be very greatful to all of those persons who can help me by giving advice or any type of suggestion.
    Thanks in advance,
    Abhinandan Banik

    Here's an example of the filter :
    package test;
    import java.io.*;
    import java.util.*;
    import javax.servlet.*;
    public class TimeFilter implements Filter {
      public void init(FilterConfig config) throws ServletException {
      public void doFilter(ServletRequest request, ServletResponse response,
        FilterChain chain) throws IOException, ServletException {
        int hour = Calendar.getInstance().get(Calendar.HOUR_OF_DAY);
        // only service the request between 08:00 and 17:59
        if (hour >= 8 && hour <= 17) {
          chain.doFilter(request, response);
        // for other times, forward the request to someplaceelse
        } else {
          request.getRequestDispatcher("/someplaceelse").forward(request, response);
      public void destroy() {
    }You will also need this in your web.xml :
    <filter>
      <filter-name>TimeFilter</filter-name>
      <filter-class>test.TimeFilter</filter-class>
    </filter>
    <filter-mapping>
      <filter-name>TimeFilter</filter-name>
      <url-pattern>/*</url-pattern>
    </filter-mapping>

  • How to use Redirect syntax in jsp?

    Hi guys I need your advice. For my web application, upon user clicks on the log out button I will redirect the user back to the main in a given time frame of 5sec for example.
    How do I write the redirect syntax? Please help I am a newbie in JSP.
    Regards,
    ~LEroy

    if u want to redirect after some time use this script. May be it will be helpful
    <SCRIPT LANGUAGE='JavaScript'>
    function f1()
    <%
    <jsp:forward----- forward to ur page");
    %>
    setTimeout('f1()',2000);
    </script>
    here 2000 milliseconds. try with this

  • How to do a redirect after a jsp:include

    Friends,
    How do I do a redirect either through HttpServletResponse.sendRedirect () or
    <jsp:forward /> in a JSP that does a <jsp:include /> at the top.
    I am getting a IllegalState exception.
    Thanks
    Regards
    Lawrence Lourduraj
    VocaLoca Inc.

    In the doc, it states:
    sendRedirect
    If the response has already been committed, this method throws an
    IllegalStateException. After using this method, the response should be
    considered to be committed and should not be written to.
    In other words, you must not do anything before or after with the response.
    Cameron Purdy, LiveWater
    "Lawrence Lourduraj" <[email protected]> wrote in message
    news:8ip9p4$r0g$[email protected]..
    >
    Friends,
    How do I do a redirect either through HttpServletResponse.sendRedirect ()or
    <jsp:forward /> in a JSP that does a <jsp:include /> at the top.
    I am getting a IllegalState exception.
    Thanks
    Regards
    Lawrence Lourduraj
    VocaLoca Inc.

  • Timed out issue in jsp page!

    Dears,
    It is really amazing for me to see this issue in my application which I deployed in Oracle Application Server 10g r2.
    I am using JDeveloper 10g to create jsp pages.
    On one jsp page i am displaying 15 html tables for a report.
    All tables have 1 query to get records from oracle 10g database.
    Am opening one connection and than one by one running queries just before each table and rendering data through ResultSet
    (which is scrollable).
    If I test this page from JDeveloper, it is displaying fine.
    But when I deploy this page in Oracle Application Server 10g,
    and create a portlet and show this jsp page in portlet and open this page,
    this page most of the time giving 'TIMED OUT', and a few times displaying report properly.
    I tried PreparedStatement to run multiple queries for Oracle DB, but couldn't make it successfully.
    BTW,
    I checked my OAS log, it shows following error:
    09/03/16 18:39:08 hrwfapp: [instance=(null), id=(null)] ERROR: Request has exceeded its warning timeout Time[elapsed=61046ms.
    Warning timeout=20000ms.] Request[id=5003532663665,3 providerId=493501 portletId=117 portletName=AttritionReports
    portletInstance=35555_ATTRITIONREPORTS_493501 user=PUBLIC] Thread[ name=AJPRequestHandler-ApplicationServerThread-6
    priority=5 alive=true interrupted=false groupName=ApplicationServerThreadGroup]
    Please help me in this regard, what should I do to avoid Timed out issue.
    Best Regards

    Hi,
    if this occurs only in combination with portlets then I would try the Oracle Portal forum for help or use customer support to help you analyzing the issue
    Frank

Maybe you are looking for

  • How do i get indesign files to show in all my files?

    I use Adobe InDesign quite frequently, and the finder is brilliant for getting my newly downloaded images in to the document using "All My Files", unfortunately InDesign documents do not show up in the same manner. Is there any way i can associate .i

  • Symbols do not render in browsers

    Hello, I don't know when / why this happened but for some reason symbols (Roman I believe) in Firefox 3.5.5 and Safari 4.0.3 do not render correctly. An example is this page: http://www.scs.ryerson.ca/~mth110/F09/Assignments/F09-assignment2.shtml Sym

  • CONTAINS problem in materialized view

    SELECT SCORE(1) AS RELEVANCE, AST_OID, TOTAL FROM asset_materialized_vw WHERE CONTAINS(total, '%PRODUCT%', 1) > 0 ORDER BY RELEVANCE DESC; The table in the FROM clause, asset_materialized_vw is a materialized view of a view called asset_vw with a com

  • Logging the Userid ... what is the best approach?

    Hi guys, I have a hard time to decide on the best approach to audit user information. Consider the the usual information you use for auditing purposes. Normally you have the columns: created_on created_by updated_on updated_by In an Apex application

  • PC Suite into 61i and 70 doesn't go...

    I have an E61i and and E70 and one computer running Win XP Pro and the latest version of PCSuite. Whereas earlier versions of PC Suite worked ok with whichever phone was connected, I now get silly messages like "Not Connected" when I try to syncronis