Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2007

Tip: Looking for answers? Try searching our database.

When user clicks on a link twice before the first click is completely processed..

Thread view: 
sapta - 24 May 2007 11:23 GMT
Hi,
This group is really helpful in leveraging ideas.
I facing an issue in my current application. Can anybody help in this?
The issue is-
In my webpage which is JSP, user clicks on a link twice even before
the first click is fully processed. This is causing malfunctioning in
the application. We are using WAS server. My question is can we stop
it without coding or designing the application in our own way? To be
more specific, can this be restricted in WAS server itself? Has anyone
ever faced this issue? how else can these be solved?

Hope someone will be able to help in someway. Thanks in
anticipation.:)

Saptarshi
Lew - 24 May 2007 13:12 GMT
> In my webpage which is JSP, user clicks on a link twice even before
> the first click is fully processed. This is causing malfunctioning in
> the application. We are using WAS server. My question is can we stop
> it without coding or designing the application in our own way? To be
> more specific, can this be restricted in WAS server itself? Has anyone
> ever faced this issue? how else can these be solved?

The application is broken in that it does not make submissions idempotent (act
only the first time invoked).  You need to fix the application.

Do not fall into the bottomleess Pit of Despair of trying to "disable the back
button" or otherwise affect browser behavior from the server.

When an application has such a major gaff as failing to handle inputs
correctly, there is little to no long-term help obtained by grafting external
solutions onto the problem.

Consider a servlet filter to guarantee idempotency.  You might use the Token
Pattern in it.

I think your only real solution is to fix the broken application.  You can put
lipstick on a pig but it's still a pig.

Signature

Lew



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.