how can u cal servlet from java?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / saikumar
Through the service method can call the servlet
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / sharief
First write a jsp page.In the form tag of jsp write the
servlet name,then the control automatically goes to the servlet.
Ex: <form name="myform" action="NameOfYourServlet"
method="post/get">
</form>
| Is This Answer Correct ? | 2 Yes | 1 No |
Difference between new operator and class.forname().newinstance()?
Is “abc” a primitive value?
whats is statement and procedure
What are the diff types of exception?
What is the return type of interrupt method?
What is chat area? Explain.
What is the difference between static and non-static with examples?
What is difference between object state and behavior?
Is the infobus client side only?
How has the sandbox changed with Java 2?
Will the general public have access to the infobus apis?
What are the types of data passing mechanisams under JMS specification?