l_serv = new URL(l_servletUrl); l_conn = l_serv.openConnection(); in = l_conn.getInputStream(); // will this return html stream ?
now i want to Attach the Stream as html attachment and send mail The requirement is we can not save this as a file on disk and attach.
Or How can i directly attach the input stream.
in line in = l_conn.getInputStream();
i am getting an error class java.io.FileNotFoundException java.io.FileNotFoundException: http://127.0.0.1:9080/mytWeb/letterMail.jsp SystemErr R at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.ja va:595).
Can you please make clear one thing: is this a server code (the code above runs within another servlet) or it is a client code?
I think, therefore I exist -- Rene Descartes
Joined: Feb 08, 2005
The code above is the server code. It is part of my action class which is called when the user clicks on the button on the lettermail.jsp after entering some data fields. Then i want that jsp as inputStream