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 is the use of State Factories?

2395


Do I need to import javlang package any time? Why ?

1091


What are the call back methods in entity bean?

1072


difference between  ejb,struts,hibernate,spring and jsp

2873


Define prototype?

1059


Are there books about seam?

1110


Describe, in general, how java's garbage collector works?

1039


What are the benefits of detached objects?

1054


Can I import same package/class twice? Will the jvm load the package twice at runtime?

1153


To identify IDL language what mapping mechanism is used?

3944


Java is fully object oriented languages or not?

999


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

1033


Can I map more than one table in a cmp?

1083


What is the difference between long.class and long.type?

1111


What is aop(assepct oriented programing)?

1063