Jacob, It sounds like your requirements preclude doing this at build time. I assume having the button to ftp a static HTML version of the report to a server somewhere means that the report has some parameters to customize the report, or at least that the report should be run at the time the user clicks the button (even if there is no configuration of the report itself).
In that case, it seems like you could have the server make a request to itself and then save the response (HTML generated by executing the JSP) in a file or just stream it directly to the ftp server that is waiting to receive it. I don't have any magic tips about converting JSP to HTML -- I would just let the server execute the JSP to convert it to HTML. If you need to strip things out (JavaScript, etc.) you may need to create a new JSP or manipulate the response to remove that stuff. -Max ----- Original Message ----- From: "Jacob Wilson" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, January 23, 2004 3:58 PM Subject: Re: JSP to static html... > > Thanks Max. This sounds very good. Your saying that automatically creating an html when the jsp is rendered sounds good. This should solve my problem. We are using websphere 5.0. We are not using ant though... > > If you can give me little more details on the configuration stuff and how to specify a particular jsp to be converted into an html, that would be great... > > -Jacob > > Max Cooper <[EMAIL PROTECTED]> wrote: > View Source ... Save As works generally, but browsers sometimes mess with > the HTML in subtle ways (netscape used to add an HTML tag, for > instance), so I would be very wary of using that technique (diff users > w/diff browser, changes after browser upgrade, etc.). The command-line tools > curl or wget should be more trustworthy to deliver the HTML as delivered by > the server with no molestation. > > If you want to automate the process (which I highly recommend if you are > really going to do this), you could use Ant to deploy your app and its JSPs > on a server and then make requests for all of the pages, saving the > responses as build output. > > Before doing any of this, I would take a detailed look at why you want to > render your JSPs and convert them to HTML. It seems likely that there is a > better (easier) way to achieve the intended goal. Ant and its various > filtering, token-replacing and other abilities may offer a more manageable > solution. > > -Max > > ----- Original Message ----- > From: "Ron Day" > To: "Struts Users Mailing List" > Sent: Friday, January 23, 2004 2:28 PM > Subject: RE: JSP to static html... > > > > View source in browser and save it to xxx.html > > > --------------------------------------------------------------------- > 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]