This will get you an input stream containing the content for the resource.
try {
Url url = new Url("<PATH_TO_RESOURCE_HERE>");
InputStream is = url.openStream();
// use input stream to get content to pass through SMTP session
} catch (MalformedURLException ignored) {
} catch (IOException ignored) {
} finally {
try {
is.close();
}
catch (IOException ignored) {
}
}
-----Original Message-----
From: Calvin Yu [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 01, 2001 11:07 AM
To: [EMAIL PROTECTED]
Subject: Re: save dynamic jsp content
The easiest way would be to write a client that makes a HTTP request to
the server and captures the HTML output that way.
Calvin
On 01 Aug 2001 13:40:58 -0400, Mustapha Essalihe wrote:
>
> Hi,
> I am new to struts. In my action class (perform) I want to run a jsp
page
> in background and save its content in an html file. How Can i do that
in
> perfom method ?. After that i know how i will send this html file by
e-mail
> (usinj java smtp) and forward the user to an adequate location
(success).
> Thanks in adavance.
> Mustapha Essalihe
>