|
Hi,
I am calling a servelt from my
application.
But any exception that occurs in the
servlet is NOT received in the client side. How can I get the exception thrown
in the servelt, at client side.
For example.
so servlet
public void doGet(HttpServletRequest
request, HttpServletResponse response)
throws ServletException, IOException { response.setContentType(CONTENT_TYPE);
throw new IOException("file"); }
In client I am calling this servelt as
private void getRequest()
{
URL myURL = null; HttpClient myClient = null; BufferedReader br = null; try
{
myURL = new java.net.URL("my url"); myClient = new HttpClient(); myClient.startSession(myURL); GetMethod method =
new GetMethod(info.getServletPath());
myClient.executeMethod(method);
} catch (Exception e)
{
e.printStackTrace();
} Thanks
Harish
|
- SSL Sessions in Servlets Alan P Sexton
- Re: SSL Sessions in Servlets Dharmesh Patel2
- Re: SSL Sessions in Servlets Steven J. Owens
