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

When a thread blocks on i/o?

1086


How are the elements of a cardlayout organized?

1079


What is the difference between the ‘font’ and ‘fontmetrics’ class?

1150


How are commas used in the intialization and iteration parts of a for statement?

1091


Is it possible to stop the execution of a method before completion in a sessionbean?

1077


How will you pass parameters in RMI? Why do you serialize?

1229


Explain the different types of memory used by jvm?

1140


why static class in java

1763


What is chat area? Explain.

1016


What is the difference between the session.update() method and the session.lock() method?

997


What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?

1023


what is the use of State Factories?

2380


Difference between DurableSubscription and non- DurableSubscription?

2186


Can constructors be synchronized in java?

1110


What is a sessionfactory? Is it a thread-safe object?

1213