File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Need to cancel to my existing request when i click my new request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Need to cancel to my existing request when i click my new request" Watch "Need to cancel to my existing request when i click my new request" New topic
Author

Need to cancel to my existing request when i click my new request

Suresh Na
Greenhorn

Joined: May 23, 2008
Posts: 2
Suppose when i'am loading bulk of records,half stage some other reasons i'am tried to cancel the load so that immediately cancel button but the previous request is not to cancelled. i want to stop my loading process at any time whrn i submit cancel again
in this case what to do

Thanks
Suresh.N
Nishan Patel
Ranch Hand

Joined: Sep 07, 2008
Posts: 684


Hi Suresh,

welcome to java ranch please read this Names policy for java ranch ..

Thanks, Nishan Patel
SCJP 1.5, SCWCD 1.5, OCPJWSD Java Developer,My Blog
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30136
    
150

You could have "cancel" submit a value to the server and store something in the session. If you have the original request poll the session, you will know to stop processing.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
Consider Paul's rocket mass heater.
 
subject: Need to cancel to my existing request when i click my new request
 
Similar Threads
how to get refrance of a current executing thread of a servlet
Out of Java heap space
Basic Servlet question
isCancelled(request) not invoked
Cancel Ajax previous request