Results 1 to 6 of 6
  1. #1
    paulb is offline Member
    Join Date
    Nov 2009
    Posts
    4
    Rep Power
    0

    Default JSP and javascript binding???

    Hi,
    I have a problem which I hope someone can help me with. I have an jsp page which also has some javascript in. The idea is that when a user presses a button on the page a busy cursor appears(java script) and some text appears to show the progress or status.

    I have the javascript to do this and I have tested the jsp, but not sure how I link them both together??? The jsp creates a threaded class which provides an interface to for current percentage and current state.

    Hope someone can help.

  2. #2
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,642
    Rep Power
    6

    Default

    AJAX allows you to transfer data from client to server, which might be the appropriate solution in this case.

  3. #3
    paulb is offline Member
    Join Date
    Nov 2009
    Posts
    4
    Rep Power
    0

    Default

    Never used AJAX before ; (

    The jsp lives on the server though??? The javascript on the client? Its the java in the jsp that has the thread which has the data updating in time. Correct me if I am wrong... Guess I will still need to use AJAX? I will have a search on the net.

    Thanks for your help.

  4. #4
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,642
    Rep Power
    6

    Default

    Ajax allows the client to access the server through javascript by simply loading and getting the contents of a web page...useful in situations like this, for example you write a servlet that the AJAX accesses, and since the servlet is server side it can access the appropriate data and send it back to the client.

  5. #5
    paulb is offline Member
    Join Date
    Nov 2009
    Posts
    4
    Rep Power
    0

    Default

    Quote Originally Posted by doWhile View Post
    Ajax allows the client to access the server through javascript by simply loading and getting the contents of a web page...useful in situations like this, for example you write a servlet that the AJAX accesses, and since the servlet is server side it can access the appropriate data and send it back to the client.
    Sounds good. Exactly what I need. Do you know of any good tutorials and samples. Or is best I just do a search.

  6. #6
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,642
    Rep Power
    6

    Default

    Quote Originally Posted by paulb View Post
    Sounds good. Exactly what I need. Do you know of any good tutorials and samples. Or is best I just do a search.
    The link I posted above should give you a great tutorial on how to use ajax (its really straightforward).

Similar Threads

  1. Help: Key Binding
    By mine0926 in forum New To Java
    Replies: 0
    Last Post: 08-06-2010, 04:52 AM
  2. Key Binding problem
    By dilpreet28 in forum New To Java
    Replies: 4
    Last Post: 06-22-2010, 03:59 AM
  3. JAXB Binding
    By Fusebox in forum XML
    Replies: 0
    Last Post: 06-11-2010, 10:06 PM
  4. dynamic binding
    By apparao in forum New To Java
    Replies: 1
    Last Post: 02-16-2010, 08:41 AM
  5. Dynamic Binding
    By javarishi in forum New To Java
    Replies: 3
    Last Post: 04-09-2008, 11:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •