Results 1 to 3 of 3
  1. #1
    santhoskumara is offline Member
    Join Date
    Aug 2007
    Posts
    5
    Rep Power
    0

    Default how to contact servlet from clientside through ajax

    i am able to the fetch the data's from the database through ajax when i am
    using the url in open method of Ajax :

    [ url="http://localhost:8084/budgetamountentry/controllerservlet?Qryid=1&Qrystr=Branches";
    request.open("Get",url,true); ]

    but when i am deploy the war file in server and run the page from the other host using the url as :
    [ url="http://172.16.10.86:8084/budgetamountentry/controllerservlet?Qryid=1&Qrystr=Branches";
    request.open("Get",url,true); ]

    sometimes i am not able to fetch the data's fromthe database or My NetBeans Editor shows error message as "Httprequest is not recorded
    since HttpMonitor is disabled"


    kindly advice me how to contact with servlet from ajax.
    Last edited by santhoskumara; 08-08-2007 at 08:58 PM.

  2. #2
    dmacvittie is offline Member
    Join Date
    Aug 2007
    Posts
    30
    Rep Power
    0

    Default

    Is the servers' connectivity to the database the same as your development machine?

    That would be my first guess - that there is a database connectivity issue. The "Http request not recorded" error makes sense if the server is remote.

    Don.
    Don MacVittie F5 Networks - DevCentral

  3. #3
    santhoskumara is offline Member
    Join Date
    Aug 2007
    Posts
    5
    Rep Power
    0

    Default

    Don

    I fetch the data's from the database server which is not my development machine. and i need to know anyother way to call servelt from client using ajax.

Similar Threads

  1. alternative for ajax
    By site4u in forum New To Java
    Replies: 6
    Last Post: 04-28-2011, 02:15 PM
  2. Replies: 2
    Last Post: 11-21-2008, 09:36 PM
  3. Example for Ajax-JSP
    By smrithi in forum JavaServer Pages (JSP) and JSTL
    Replies: 8
    Last Post: 06-02-2008, 03:00 PM
  4. Ajax question
    By Peter in forum New To Java
    Replies: 1
    Last Post: 07-09-2007, 01:43 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
  •