I run a servlet from a Java agent andI want to redirect its output to the browser, not to the Domino console.
Any idea?
Thanks.
Here’s the agent code.
[…]
URL mDocServletURL=new URL(servletURL);
URLConnection mURLconnection = mDocServletURL.openConnection();
mURLconnection.setUseCaches( false );
mURLconnection.setDoInput( true );
mURLconnection.setDoOutput( true );
mURLconnection.connect();
BufferedReader in = new BufferedReader( new InputStreamReader( mURLconnection.getInputStream()));
String inputLine;
while ((inputLine = in.readLine()) != null)
System.out.println(inputLine);
in.close();
mURLconnection = null;
[…]