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

Which are the different segments of memory?

816


In RMI, inorder to sent the stub reference to the client, is we have to load the server object first into the memory or can we directly sent reference to the client?

1802


why static class in java

1469


What is the difference between a menuitem and a checkboxmenuitem?

756


How to pass parameters in RMI?

1950


How substring() method of string class create memory leaks?

768


What are the different algorithms used for clustering?

769


What is permgen or permanent generation?

761


Why is string immutable in java?

799


What restrictions are placed on the location of a package statement within a source code file?

845


What is the difference between system.out ,system.err and system.in?

803


If I wanted to use a solarisui for just a jtabbedpane, and the metal ui for everything else, how would I do that?

772


What are local interfaces? Describe.

890


What is the relation between the infobus and rmi?

754


Why won’t the jvm terminate when I close all the application windows?

962