Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question on Filter

 
Ravish Shankar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Please find below a code I found in onjava regarding a Filter which avoids
multiple submits. Basically it queues the requests and always overwrites the
last request with the current waiting request in queue. Hence even if we
press 10 times, only first and last requests will be filtered. Its a nice
program. .

My question is how can we change this program, so that even the last request
will not be processed ? I do not want the processing to happen even two
times. I want to restrct the processing to only one time.**note that I do
not prefer a Java script client solution **. I tried many ways, but hits
balnk page or some exceptions. Please help ..

Best regards,
Ravi

-------



[ February 04, 2007: Message edited by: Bear Bibeault ]
 
Ravish Shankar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,

Can anyone help on this ? Thanks

Regards,
Ravi
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64608
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One reason that you may not be getting much help on this is that you posted a large block of unformatted code. Who has the time to wade through all that?

When posting code to the Ranch, please do two things:

1) Pare the code down to the portion that is giving you trouble. If more will be needed to solve the problem, you'll get asked for it.

2) Use UBB code tags to preserve the formatting. Please read this for more info.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64608
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I went ahead and added the UBB code tags to your post for you. Notice how much better the code is to read?

But it's still a lot of code to slog though...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic