Re: How to limit concurrent requests by same user

2004-04-22 Thread MS
if someone can share any > solution. > > TIA > Antony. > > > -----Original Message- > > From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] > > Sent: 22 April 2004 13:49 > > To: Tomcat Users List > > Subject: RE: How to limit concurrent requests by sa

RE: How to limit concurrent requests by same user

2004-04-22 Thread Antony
glish composition is not my subject.. :( I've not found any solution to this, so please if someone can share any solution. TIA Antony. > -Original Message- > From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] > Sent: 22 April 2004 13:49 > To: Tomcat Users List > Subject: RE: Ho

RE: How to limit concurrent requests by same user

2004-04-21 Thread Ralph Einfeldt
ay, April 22, 2004 8:38 AM > To: 'Tomcat Users List' > Subject: RE: How to limit concurrent requests by same user > > > I tried this approach once, I got stuck on this scenario: > user submit a form, jsp/servlet processes and remove the token from list. > But

RE: How to limit concurrent requests by same user

2004-04-21 Thread Antony
> > When this has come up in the past, consensus seems to have > been the setting of a unique token within the page when > generated such that each time a user requests a "submittable" > page, that page will contain a hidden attribute with that > token. Implement a filter that only allows pro

Re: How to limit concurrent requests by same user

2004-04-21 Thread Graham Lea
Andreas Schildbach wrote: >I wonder if it would be possible to write a filter that would implement this functionality transparently to the JSP pages/servlets. The solution I explained was coded in a filter. Justin Ruthenbeck wrote: >The problem with the solutions mentioned in this thread is that

Re: How to limit concurrent requests by same user

2004-04-21 Thread Justin Ruthenbeck
You'll find quite a bit of info about this in the archives. When this has come up in the past, consensus seems to have been the setting of a unique token within the page when generated such that each time a user requests a "submittable" page, that page will contain a hidden attribute with that

Re: How to limit concurrent requests by same user

2004-04-21 Thread Thomas Lange
> I wonder if it would be possible to write a filter that would implement > this functionality transparently to the JSP pages/servlets. It could be done semi-transparently with a conditional custom tag embracing all of an individual page's content. That tag could check for concurrent request an

Re: How to limit concurrent requests by same user

2004-04-21 Thread Andreas Schildbach
Graham Lea wrote: We do pretty much what you said, except with a little tweak. If multiple requests come in for the same session, all but the first request wait (literally: Object.wait()) until the first one has finished. We also keep a track of which was the last thread to come in the door. When

Re: How to limit concurrent requests by same user

2004-04-21 Thread Graham Lea
We just did this for our application. We do pretty much what you said, except with a little tweak. If multiple requests come in for the same session, all but the first request wait (literally: Object.wait()) until the first one has finished. We also keep a track of which was the last thread to co