struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ed Griebel" <edgrie...@gmail.com>
Subject Re: How to create a Waiting Page for long requests?
Date Wed, 03 May 2006 17:54:01 GMT
I've done exactly this in another app with both a meta-tag to resubmit
and a button to do same. It would check a "status flag" somewhere (db,
session var, whatever) and when set it will jump to a "done" action.

The tricky part is that you can't create a new thread in your action
as it violates the servlet spec (as you don't know what thread will
get subsequent requests from the same session, so you've lost the
handle to your child thread), so what I did is had a JMS receiver that
sat idle until the action sent a JMS message to the receiver which
would then start the asynchronous process. The receiver process
[thread] would do what it needed to do, set the magic status flag, and
then wait for another request.

-ed

On 5/3/06, Shshank Jain <jain.shshank@gmail.com> wrote:
> I have used div and js and it works fine. but if u dont want to use
> it...maybe
>
> just an idea. redirect the user to a page with the waiting message and the
> hidden form and resubmit that..
>
> -shanky
>
>
> On 5/3/06, Julian Tillmann <purplefly@gmx.de> wrote:
> >
> > Hi again,
> >
> > thanks for the suggestions, but I'd rather not use JavaScript, so any
> > advice
> > besides that?
> >
> > ciao 4 now
> > Julian
> >
> > > --- Ursprüngliche Nachricht ---
> > > Von: "Shshank Jain" <jain.shshank@gmail.com>
> > > An: "Struts Users Mailing List" <user@struts.apache.org>
> > > Betreff: Re: How to create a Waiting Page for long requests?
> > > Datum: Wed, 3 May 2006 12:34:08 +0530
> > >
> > > Hii
> > >
> > > One way could be to dynamically create a full page size div and place it
> > > over the whole page on the higher z-index this will disable the access
> > > to the  underlying buttons etc. If you have select list with submission
> > on
> > > onchange event then you may have to disable them manually using
> > javascript
> > > as browser places them on the highest z-index exposing them during the
> > > request.
> > >
> > > - Shanky
> > >
> > >
> > > On 5/3/06, Roy, Ansuman <ansuman.roy@logicacmg.com> wrote:
> > > >
> > > > when a user submits anything on the jsp page you can try and disable
> > the
> > > > submit button and display a message for please wait.
> > > > all this can be achieved with the help of java script.
> > > > regards,
> > > > Roy
> > > >
> > > > -----Original Message-----
> > > > From: Julian Tillmann [mailto:purplefly@gmx.de]
> > > > Sent: Wednesday, May 03, 2006 11:44 AM
> > > > To: user@struts.osuosl.org; user@struts.apache.org
> > > > Subject: How to create a Waiting Page for long requests?
> > > >
> > > >
> > > > Hi
> > > >
> > > > I want to prevent a user from submitting
> > > >
> > > > long during database queries twice.
> > > >
> > > > Therefore I try to include a waiting page.
> > > >
> > > > Can someone name me an example or give me
> > > >
> > > > a tip how to implement it?
> > > >
> > > >
> > > >
> > > > Thanks a lot
> > > > Julian
> > > >
> > > > --
> > > > "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
> > > > Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > > For additional commands, e-mail: user-help@struts.apache.org
> > > >
> > > >
> > > >
> > > > This e-mail and any attachment is for authorised use by the intended
> > > > recipient(s) only. It may contain proprietary material, confidential
> > > > information and/or be subject to legal privilege. It should not be
> > > copied,
> > > > disclosed to, retained or used by, any other party. If you are not an
> > > > intended recipient then please promptly delete this e-mail and any
> > > > attachment and all copies and inform the sender. Thank you.
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > > For additional commands, e-mail: user-help@struts.apache.org
> > > >
> > > >
> > >
> >
> > --
> > GMX Produkte empfehlen und ganz einfach Geld verdienen!
> > Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message