Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how can u cal servlet from java?

Answer Posted / manjul

create a HTTPClient object
DefaultHttpClient httpclient = new DefaultHttpClient();
HttpGet httpget = new HttpGet("your servlet");
HTTPResponse response = httpclient.execute(httpost);

Is This Answer Correct ?    22 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are transaction attributes?

1158


Why doesn’t the focus feature on the tag work in every circumstance?

1171


To what value is a variable of the string type automatically initialized?

1168


What is the infobus?

1133


What are the call back methods in entity bean?

1113


How to determine SGA site?

2611


What modifiers may be used with an inner class that is a member of an outer class?

1117


What is JTS?

2431


Can I run seam with jdk 1.4 and earlier?

1051


Why does the tag url-encode javascript and mailto links?

1068


int x=5,i=1,y=0; while(i<=5) { y=x++ + ++x; i=i+2; } System.out.println(x); System.out.println(y); System.out.println(i); How to solve this? Please explain!

1886


What is a modular application?

1137


Difference between loadclass and class.forname?

1095


Why use POJO when I can use hashmap

2714


What is the purpose of the wait() method?

1280