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 |
In our urls and in the text of the buttons we have comma. Its causing an error. Is there a way to change the delimiting character for the menu arguments?
What happens when a thread cannot acquire a lock on an object?
Explain about local interfaces.
difference of inheritance and interface
Explain how will the struts know which action class to call when you submit a form?
What is a session? Can you share a session object between different theads?
What is a clone?
Difference Between getRequest and PostRequest?
What is TL and its use?
What is chat area? Explain.
How would you detect a keypress in a jcombobox?
Is it possible to stop the execution of a method before completion in a sessionbean?