|
||
|
|||
|
how to control threads in a jsp page using javascript button?
when i click on a button, i should be able to pause a thread. i have tried writing code in a function using <% ... %> tags, but they are executed automatically on page load. and when i click on the button, nothing happens.
|
|
||||
|
If you want this seamless so that the brower doesnt refresh the page when you click the button you will have to create an AJAX call.
Using jQuery for instance this makes it all really easy. See Ajax – jQuery API for more information. Once you make the ajax call you need to have a servlet or something receiving this call and then just take it from there to pause the running state of the thread in question. // Json |
|
|||
|
Quote:
thanks for the advice. but as i went through the Ajax books, i saw that only text-data can be passed between a server and client using jsp. how can i locate the thread in the server and then control it ? please suggest some coding example.. |
![]() |
| Tags |
| javascript, jsp, thread |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Control Browser Back Button | Ganezan | JavaServer Pages: JSP & JSTL | 2 | 01-01-2010 12:21 PM |
| control Browser Back Button | Ganezan | JavaServer Pages: JSP & JSTL | 0 | 30-12-2009 11:49 AM |
| process control | ttsdinesh | Java Native Interface | 6 | 27-10-2009 10:29 PM |
| how to put session in javascript | rajani | JavaServer Pages: JSP & JSTL | 2 | 08-07-2009 05:46 PM |
| javascript issue in eclipse JEE ganymede 3.4.2 | katty | Java IDEs | 3 | 18-05-2009 08:45 AM |
|
100 most searched terms
Search Cloud
|
| 2d arraylist java actionlistener actionlistener in java actionlistener java addactionlistener addactionlistener in java addactionlistener java applications of oops could not create java virtual machine xp double format java double to int double to int java double to integer in java double to integer java eclipse shortcut keys eclipse tutorial for beginners exception in thread "awt-eventqueue-0" java.lang.outofmemoryerror: java heap space exception in thread "main" java.lang.nullpointerexception exception in thread "main" java.lang.outofmemoryerror: java heap space format double java get mouse position java java 2d arraylist java actionlistener java addactionlistener java convert list to map java double format java double formatting java double to int java double to integer java format double java forum java forums java get mouse position java list to map java mouse position java programming forum java programming forums java programming help java sendkeys java two dimensional arraylist java.lang.classformaterror: truncated class file java.lang.outofmemoryerror: java heap space java.util.arraylist jbutton actionlistener jtextarea font jtextfield font size jxl.read.biff.biffexception: unable to recognize ole stream programming mutators and generics two dimensional arraylist java writing ipod apps |