Here you go, Indresh.. didn't turn out to be a massive search after all.. :)
----------------------------------------------------

> <form name="initialform" action="/servlet/ShowWaitMessage" method="POST"
> ENCTYPE="application/x-www-form-urlencoded">
>
> <INPUT TYPE=TEXT NAME="name" VALUE="">
>
> </form>
>
> --------------------------------------------------------------------------
----------------------------------------------------------------------------
--------------------------
>
> Code for showWaitMessage.java: (basically just save all input params as
session
> vars..)
> public class ShowWaitMessage extends HttpServlet{
>
>     public void doGet/doPost(HttpServletRequest req, HttpServletResponse
resp)
>     throws ServletException, IOException
>         //..blah..blah..
>         session.setAttribute("name" req.getParameter("name"));
>
>         //more blahs..
>         resp.sendRedirect(htmlFilesDirectory + "waitMessage.jsp");
>     }
> }

> ----------------------------------------------------------------------------

>
> Code for waitMessage.jsp: (and here's where's the smarts are: display the
wait
> message page and then use javascript to go on to the "main" servlet..)
>
> <HTML>
> <HEAD>
>
> <SCRIPT LANGUAGE='JavaScript'>
>     function goToMainServlet(){
>         this.location="/servlet/MyMainServlet?showResults=true";
>     }
>
>     timeout=window.setTimeout("goToMainServlet();", 1000); //The function
goToMainservlet() is executed 1 minute > after this page is displayed.
> </SCRIPT>
> </HEAD>
> <BODY bgcolor=white class=bodytext>
> <CENTER>
> <TABLE WIDTH=400>
> <TR><TD>
> <B>Our servlet is hard at work. Please be patient while we prepare your
results.</B>
> </CENTER>
> </TD></TR>
>
> </TABLE>
> </CENTER>
>
> --------------------------------------------------------------------------
----------------------------------------------------------------------------
--------------------------
>
> Code for MyMainServlet.java: (pick up all the session vars and then you're
off
> to the races!)
> public class MyMainServlet extends HttpServlet{
>     public void doGet(HttpServletRequest req, HttpServletResponse resp)
>     throws ServletException, IOException
>
>         //..blah..blah..
>
>         session.getAttribute("name");
>
>         //more blahs..
>         resp.sendRedirect(htmlFilesDirectory + "whatever.jsp");
>     }
> }
>
> --------------------------------------------------------------------------
----------------------------------------------------------------------------
--------------------------
>
> Enjoy!
> Geeta
>






----------------------------------------------------
indresh padmonkar wrote:

> Hi Geeta,
>    I don't know exactly where to find. If you could
>
> dig out .. and get me the solution that will be great.
>
> Thanks,
> Indresh
>
> --- Geeta Ramani <[EMAIL PROTECTED]> wrote:
> > Indresh:
> >
> > I had a problem like this which i solved using code
> > in the Jan 2001 issue of
> > JavaPro. Let me know if you cant find it, I *think*
> > I can dig into my "sent"
> > mail and look for it.
> >
> > Cheers,
> > Geeta
> >
> > indresh padmonkar wrote:
> >
> > > Hello:
> > >
> > >   My problem is ..
> > >
> > >  The servlet should display a MESSAGE(kind of busy
> > > signal) on reciving the request.
> > >
> > > After some calculations it should pass the control
> > to
> > > a JSP.
> > >
> > > The JSP should over write on the MESSAGE.
> > >
> > > I tried to use forward or include methods of
> > > dispatcher. But those did not replace the MESSAGE.
> > >
> > > What is the way to solve this problem??
> > >
> > > Thanks,
> > > Indresh
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Yahoo! Sports - live college hoops coverage
> > > http://sports.yahoo.com/
> > >
> > >
> >
> ___________________________________________________________________________
> > > To unsubscribe, send email to
> > [EMAIL PROTECTED] and include in the body
> > > of the message "signoff SERVLET-INTEREST".
> > >
> > > Archives:
> >
> http://archives.java.sun.com/archives/servlet-interest.html
> > > Resources:
> >
> http://java.sun.com/products/servlet/external-resources.html
> > > LISTSERV Help:
> > http://www.lsoft.com/manuals/user/user.html
> >
> >
> ___________________________________________________________________________
> > To unsubscribe, send email to [EMAIL PROTECTED]
> > and include in the body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives:
> >
> http://archives.java.sun.com/archives/servlet-interest.html
> > Resources:
> >
> http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help:
> > http://www.lsoft.com/manuals/user/user.html
> >
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Sports - live college hoops coverage
> http://sports.yahoo.com/
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to