Jacob, Another approach is to enclose the part of the JSP that you want to 'snap' to HTML in a Custom Tag that allows you to get at the JspWriter's output stream; if the page is one that would also need to be viewed as-is by a browser, then the tag could use a settable attribute to control whether the body-content within the tag is 'diverted' to a stream that your app can read, or just sent to the client normally.
The basis of this idea can be found at: http://www.caucho.com/support/resin-interest/0009/0136.html (The writer of this link is grabbing stuff direct to database, but the principal is the same) Hope you find this helpful, Regards, Neil Pattinson. -----Original Message----- From: Jacob Wilson [mailto:[EMAIL PROTECTED] Sent: 23 January 2004 23:51 To: Struts Users Mailing List Subject: Re: JSP to static html... Actually, this is therequirement... One jsp page(contains scriptlets, dynamic values. etal) in the current application generates a report. Now, I need to present with a button at the end of the page. When I click on that button, this page should be converted into a static html and then ftp this html page to one of the servers... I know uploading could be done without probs... But, the only question I have is how do I convert that page into an html??? David Erickson <[EMAIL PROTECTED]> wrote: I don't know the layouts of your jsps or what you are doing in them.. but JSP's are inherently non-static because they use runtime expressions to generate the html, and that can change on a per request basis. If you are using strictly html and no RT expressions or tags or anything I don't see why you couldnt just rename the extension from jsp to html and save it wherever you want. -David ----- Original Message ----- From: "Jacob Wilson" To: "Struts Users Mailing List" Sent: Friday, January 23, 2004 12:30 PM Subject: 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! --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]