Results 1 to 3 of 3
- 08-08-2007, 07:45 PM #1
Member
- Join Date
- Aug 2007
- Posts
- 5
- Rep Power
- 0
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 07:58 PM.
- 08-09-2007, 10:51 PM #2
Member
- Join Date
- Aug 2007
- Posts
- 30
- Rep Power
- 0
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
- 08-10-2007, 06:56 AM #3
Member
- Join Date
- Aug 2007
- Posts
- 5
- Rep Power
- 0
Similar Threads
-
alternative for ajax
By site4u in forum New To JavaReplies: 6Last Post: 04-28-2011, 01:15 PM -
"connection refused when attempting to contact localhost
By katie in forum New To JavaReplies: 2Last Post: 11-21-2008, 08:36 PM -
Example for Ajax-JSP
By smrithi in forum JavaServer Pages (JSP) and JSTLReplies: 8Last Post: 06-02-2008, 02:00 PM -
Ajax question
By Peter in forum New To JavaReplies: 1Last Post: 07-09-2007, 12:43 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks