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 |
Will it be called overriding if I do not change the parameters or return type, instead throw a different exception in the method signature.
What is the difference between a static and a non-static inner class?
What are synchronized methods and synchronized statements?
what do u mean by java bean??
How to determine applet?s height and width?
What is a session? Can you share a session object between different theads?
Do I have to use jsps with my application?
Where we can write Rmi registry in the code, without having to write it at the command prompt?
what is the Scope of Final Keyword in Java?
What is meant by multi-threading?
Wt is the main difference between Java and Java J2EE and Advanced java?
What are skeletons and stubs and how they are generated?