Re: How to create a Waiting Page for long requests?
NP 2006/5/4, Ed Griebel <[EMAIL PROTECTED]>: Great link, thanks!! -ed On 5/3/06, Jakub Milkiewicz <[EMAIL PROTECTED]> wrote: > Hi > I think JMS is only valid , i.e. following specification solution. > Take a look at: > http://www.javaranch.com/newsletter/200403/AsynchronousProcessingFromServlets.html > > 2006/5/3, Dave Newton <[EMAIL PROTECTED]>: > > > > Ed Griebel wrote: > > > 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), > > > > Oh, yeah? Is that equally valid for a servlet that's run only on > > initialization that starts a thread that thrashes through the database > > every now and then doing something? I know I could use jCrontab/etc. but > > they're already mad enough at me for using not-invented-here stuff >:-( > > > > Dave > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to create a Waiting Page for long requests?
Great link, thanks!! -ed On 5/3/06, Jakub Milkiewicz <[EMAIL PROTECTED]> wrote: Hi I think JMS is only valid , i.e. following specification solution. Take a look at: http://www.javaranch.com/newsletter/200403/AsynchronousProcessingFromServlets.html 2006/5/3, Dave Newton <[EMAIL PROTECTED]>: > > Ed Griebel wrote: > > 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), > > Oh, yeah? Is that equally valid for a servlet that's run only on > initialization that starts a thread that thrashes through the database > every now and then doing something? I know I could use jCrontab/etc. but > they're already mad enough at me for using not-invented-here stuff >:-( > > Dave > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to create a Waiting Page for long requests?
Hi I think JMS is only valid , i.e. following specification solution. Take a look at: http://www.javaranch.com/newsletter/200403/AsynchronousProcessingFromServlets.html 2006/5/3, Dave Newton <[EMAIL PROTECTED]>: Ed Griebel wrote: > 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), Oh, yeah? Is that equally valid for a servlet that's run only on initialization that starts a thread that thrashes through the database every now and then doing something? I know I could use jCrontab/etc. but they're already mad enough at me for using not-invented-here stuff >:-( Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to create a Waiting Page for long requests?
Ed Griebel wrote: > 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), Oh, yeah? Is that equally valid for a servlet that's run only on initialization that starts a thread that thrashes through the database every now and then doing something? I know I could use jCrontab/etc. but they're already mad enough at me for using not-invented-here stuff >:-( Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to create a Waiting Page for long requests?
Ed, We've used this: http://wiki.apache.org/struts/StrutsPleaseWait?highlight=%28wait%29 To great effect in our struts apps. Hope it helps. -Bill Hansley DHTS Perioperative Services Dev Team CoLead 10083 Hock Plaza w) 919.668.1388 f) 919.668.5568 "Ed Griebel" <[EMAIL PROTECTED]> 05/03/2006 01:54 PM Please respond to "Struts Users Mailing List" To "Struts Users Mailing List" cc Subject Re: How to create a Waiting Page for long requests? 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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" <[EMAIL PROTECTED]> > > > An: "Struts Users Mailing List" > > > 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 <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED] > > > > Sent: Wednesday, May 03, 2006 11:44 AM > > > > To: [EMAIL PROTECTED]; 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: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > 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: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > -- > > 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: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to create a Waiting Page for long requests?
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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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" <[EMAIL PROTECTED]> > > An: "Struts Users Mailing List" > > 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 <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED] > > > Sent: Wednesday, May 03, 2006 11:44 AM > > > To: [EMAIL PROTECTED]; 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: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > 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: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > -- > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to create a Waiting Page for long requests?
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 <[EMAIL PROTECTED]> 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" <[EMAIL PROTECTED]> > An: "Struts Users Mailing List" > 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 <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED] > > Sent: Wednesday, May 03, 2006 11:44 AM > > To: [EMAIL PROTECTED]; 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: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > 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: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to create a Waiting Page for long requests?
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" <[EMAIL PROTECTED]> > An: "Struts Users Mailing List" > 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 <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED] > > Sent: Wednesday, May 03, 2006 11:44 AM > > To: [EMAIL PROTECTED]; 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: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > 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: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to create a Waiting Page for long requests?
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 <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED] Sent: Wednesday, May 03, 2006 11:44 AM To: [EMAIL PROTECTED]; 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to create a Waiting Page for long requests?
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:[EMAIL PROTECTED] Sent: Wednesday, May 03, 2006 11:44 AM To: [EMAIL PROTECTED]; 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]