Chad-
Have you looked at activetree which has Preview capability?
http://www.activetree.com/
M-
----- Original Message -----
From: "Chad Armstrong" <[EMAIL PROTECTED]>
To: <user@struts.apache.org>
Sent: Monday, November 07, 2005 5:44 PM
Subject: spawning a new window for print?
Hi all,
I'm pretty new to Struts (and using 1.0 at that, for business
requirements). I've built a pretty simple application, retrieving
records from a database, populating the Form object and using JSTL and
struts tags to display the results. What I want to now do however, is
provide a Print link that spawns a new window with a stripped down
version of the content. It would be easy enough if the Print button
just refreshed the page, I would just use a standard submit button and
post back to the same page with a hidden form field flag set to not
display the extraneous formatting. But I want to do this in a new
window.
I've tried the following:
Using javascript to force a form submit in the onclick method of a
text link, so I can do a target="_blank". That for some reason loses
my hidden field value that I set in the onclick.
Any ideas out there?
thanks in advance
Chad
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]