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 containers use a border layout as their default layout?

596


What are local interfaces? Describe.

685


Explain the different types of memory used by jvm?

594


How primary key is implemented in Oracle?

1897


What are the sequence of steps to write pub or sub model kind of application?

1875






How is a java object message delivered to a non-java client?

561


What are the steps to write p-to-p model application?

1942


How messaging services are done, before release of JMS?

1576


what are RemoteObjects?

2244


hi friends, i have done my BE(CSE)at 2011 then i have joined one company before they asked me 50k so i paid but now they telling no project here so we r going to close like that so now i need any job i have good knowledge in core java and j2ee(jsp,servlet,jdbc) so if u know any job pl help me

1766


What are the different approaches to represent an inheritance hierarchy?

569


What is TL and its use?

1978


How to implement RMI in Java?

2387


Explain what is orm?

663


How can I avoid validating a form before data is entered?

540