What page..the JSP page they see in the browser? I think there is JavaScript that can 
email a page as well.but not sure. Perhaps in your servlet you can output the html 
into a text file or something and when the email button is clicked, it just pulls it 
from whereever and sends it. Actually, if its not too large, store the html output 
from the servlet in a var, stick it in the session, then send it from there if the 
email button is clicked.

> -----Original Message-----
> From: Chen, Gin [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 24, 2002 9:21 AM
> To: [EMAIL PROTECTED]
> Subject: Email button on page
> 
> 
> Hi everyone,
> 
>         Hopefully this is something simple. The scenario is 
> that I have a
> JSP page that displays some dynamic data. On the bottom of 
> the page there
> are print and send buttons. The print works great but for the 
> send button, I
> am sending it to a Servlet that is basically recreating the 
> page for sending
> via JavaMail.
>         My question is this, is there a way to get the 
> contents of that page
> W/O havin to recreate it for sending via the Servlet? Kind of 
> like having a
> copy of the page rather than having to recreate the page. Is 
> there another
> way to do this? I just dont like having to incur the cost of 
> generating the
> page twice.
> 
> Thanks,
> -Tim
> 
> ==============================================================
> =============
> To unsubscribe: mailto [EMAIL PROTECTED] with body: 
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set 
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
> 
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
> 

==========================================================================To 
unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to