On 9/13/05, Laurie Harper <[EMAIL PROTECTED]> wrote: > Jeff Deskins wrote: > > Is there a way to display all inputs/textareas of a struts form as plain > > text for a printer-friendly version of a page? > > > > This would be similar to how the readonly attribute of a form currently > > works in struts, by changing all fields to readonly. However, in this case, > > I am looking for something to change all fields to display just the values > > instead of the inputs and textareas. This way I can use the same jsp in > > combination with css to have a printer-friendly page by passing in a print > > parameter to the struts form. > > You don't need to do anything (Struts specific or otherwise) in your JSP > other than provide the appropriate print stylesheet. Add the following > to your JSP page: > > <link rel="stylesheet" type="text/css" href="print.css" > media="print"/> > > (note the 'media' attribute). Then, in print.css you can make whatever > formatting changes you want for printed copy, including supressing input > lables if you want. > > This article might help shed more light: > > http://www.alistapart.com/articles/goingtoprint
He does not want to suppress form elements, he wants to print existing input fields and textareas without borders, as labels. Michael. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]