Thanks guys, yeah I was hoping that a submit would be a submit,
regardless of browser window, just redirecting the request/response
stream, but maybe not. I'm familiar with the CSS options you offered,
so I will fall back to those same-window options if no new-window
solutions are found.

Chad

On 11/7/05, Murray Collingwood <[EMAIL PROTECTED]> wrote:
> Michael's idea prompted me.  I use two style sheets, one for 'print' and one 
> for 'screen'.
>
> Generally I find that the print and screen css are applied heirarchically, so 
> I code most
> of the stuff I want in the 'screen' css and my print one looks like follows:
>
> BODY {
>         margin: 10px;
>         padding: 0px;
> }
> .menu {
>         display: none;
> }
>
>
> You can add other tag definitions you want to hide, I usually only hide the 
> menu.
>
> Cheers
> mc
>
>
> On 7 Nov 2005 at 15:10, Michael Jouravlev wrote:
>
> > On 11/7/05, Chad Armstrong <[EMAIL PROTECTED]> wrote:
> > > 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?
> >
> > I am not sure that browser can automatically move all or some form
> > elements from one window to another (which may not be even a form).
> > Search this list, the similar question was asked about half a year
> > ago.
> >
> > If you used clean (X)HTML with CSS and with a different stylesheet for
> > a printer, the things would be easier and cleaner, you would just
> > select Print Preview and see correctly formatted page.
> >
> > Michael.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> > --
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.1.362 / Virus Database: 267.12.8/162 - Release Date: 5/11/2005
> >
>
>
>
> FOCUS Computing - web design
> Mob: 0415 24 26 24
> [EMAIL PROTECTED]
> http://www.focus-computing.com.au
>
>
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.362 / Virus Database: 267.12.8/162 - Release Date: 5/11/2005
>
>
> ---------------------------------------------------------------------
> 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]

Reply via email to