See Copy taglib from Coldtags suite:
http://www.servletsuite.com/jsp.htm
You can save the whole page in session. And as soon
as "Email" button is pressed get text from session:
<pref:Copy id="LASTPAGE" scope="session">
all your JSP/HTML code is here
</pref:Copy>
Original letter:
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
--
Coldbeans Software - server-side Java (tm) components
http://www.servletsuite.com
__________________________________________________________________
Your favorite stores, helpful shopping tools and great gift ideas. Experience the
convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/
Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.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