Hi guys...
 
Sorry I wasn't able to get back to you immediately on this question I had asked... I 
was pretty busy on other things and had asked my friend to work on the same... The way 
he had implemented was by using the Apache Commons HTTP Client... Here is code 
snippet... It's very simple...
 
HttpClient client = new HttpClient();     
StringBuffer url = new StringBuffer("http://localhost:8080/E47";);   
url.append("/CMSWebDriver?actionName=aa&commandName=cc&Id=" + Id);
// Create a method instance.
HttpMethod method = new GetMethod(url.toString());
// Execute the method.
try {
 // execute the method.
 int statusCode = client.executeMethod(method);
} catch (HttpRecoverableException e) {
        System.err.println("A recoverable exception occurred, retrying." + 
e.getMessage());
} catch (IOException e) {
        System.err.println("Failed to download file.");
        e.printStackTrace();
        System.exit(-1);
}
// Read the response body.
byte[] responseBody = method.getResponseBody();
// Release the connection.
method.releaseConnection();
 
Thanks to all that gave me inputs... They were really useful....
 
-Joseph



"Nicholson, Robb" <[EMAIL PROTECTED]> wrote:
The Apache Commons HTTP Client (see org.apache.commons.httpclient.*
packages) makes it pretty easy to make HTTP requests and get the response
back as a String.


-----Original Message-----
From: Jacob Wilson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 23, 2004 4:28 PM
To: [EMAIL PROTECTED]
Subject: Convert JSP to static HTML...


Hi All...

I have a specific requirement in my project... I want to convert the JSP
pages to static html pages and save them in a local directory... How do I
achieve this functionality??? Any suggestions appreciated.

Thanks much.

-Jacob



---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!


---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!

Reply via email to