Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-08-2007, 09:45 PM
Member
 
Join Date: Aug 2007
Posts: 4
santhoskumara is on a distinguished road
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 09:58 PM.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-10-2007, 12:51 AM
Member
 
Join Date: Aug 2007
Posts: 30
dmacvittie is on a distinguished road
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 -
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 08-10-2007, 08:56 AM
Member
 
Join Date: Aug 2007
Posts: 4
santhoskumara is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
"connection refused when attempting to contact localhost katie New To Java 2 11-21-2008 10:36 PM
Example for Ajax-JSP smrithi JavaServer Pages (JSP) and JSTL 8 06-02-2008 04:00 PM
NetBeans IDE 6.1 - AJAX Programing JavaForums Java Blogs 0 04-16-2008 01:00 AM
alternative for ajax site4u New To Java 1 03-17-2008 02:08 PM
Ajax question Peter New To Java 1 07-09-2007 02:43 AM


All times are GMT +3. The time now is 11:13 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org