You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by Stuart Thomson <st...@swtsoftware.com> on 2002/05/16 19:04:54 UTC

Re: Is there a way to capture a copy of the html page that my jspcreates?

Do you want to do this programatically or frm the browser. Netscape and
IE have view source options from which you can save the html.

Richard Elsberry wrote:
> 
> Hello,
> 
> I've searched the archives and played around quite a bit with some of the
> tag libraries and am having a hard time.
> 
> Is there a way to capture a copy of the html page that my jsp creates? I
> have been researching this for several days now with no luck.
> My ultimate goal is to get a copy of the dynamic page as it is parsed so
> that I can apply a style sheet (FOP) to convert it to a pdf.
> I tried the io.jar package but I don't think that I am using it right.
> There must be a simple way to do this but I don't seem to be getting
> any closer to finding a solution.
> 
> Thanks,
> 
> Richard Elsberry
> richard@elsberry.net
> 651-222-4393
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Is there a way to capture a copy of the html page that my jspcreates?

Posted by Rajesh Kalluri manduca <ra...@manduca.com>.
Richard,

I do something similar capture jsp output to a html file but to avoid the
over head of exposing a jsp as i work on a content site with havey traffic
traffic, here is how i use io tag and it works fine for me.

<%
    File titufile = new File( "/local/mypage.html" );
    FileWriter fileWriter = new FileWriter( titufile );
%>


<io:pipe writer="<%= fileWriter %>">

    <io:http url="http://xxx.iversal.com/mypage.jsp"/>

</io:pipe>


mypage.jsp---------> mypage.html

In this case my jsp acts a template and infuses data from my action class
dynamically, i am thinking of moving to velocity though which does it all in
one class with out so much infrastructure.

Regards
Rajesh Kalluri

ps: if you jsp is password protected good luck

you can always use wlynx or wget and write output of a jsp to a html

-----Original Message-----
From: Stuart Thomson [mailto:stuart@swtsoftware.com]
Sent: Thursday, May 16, 2002 1:05 PM
To: Tag Libraries Users List
Subject: Re: Is there a way to capture a copy of the html page that my
jspcreates?


Do you want to do this programatically or frm the browser. Netscape and
IE have view source options from which you can save the html.

Richard Elsberry wrote:
>
> Hello,
>
> I've searched the archives and played around quite a bit with some of the
> tag libraries and am having a hard time.
>
> Is there a way to capture a copy of the html page that my jsp creates? I
> have been researching this for several days now with no luck.
> My ultimate goal is to get a copy of the dynamic page as it is parsed so
> that I can apply a style sheet (FOP) to convert it to a pdf.
> I tried the io.jar package but I don't think that I am using it right.
> There must be a simple way to do this but I don't seem to be getting
> any closer to finding a solution.
>
> Thanks,
>
> Richard Elsberry
> richard@elsberry.net
> 651-222-4393
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>

--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>