Im not sure how to do this in struts, although you could use JSTL to
print out only the values for 'print' version and the actual inputs, etc
for the live version... 

Very simple example: 

<c:choose>
<c:when test="${myValue=='print'}">
  ${myValue}
</c:when>
<c:otherwise>
   <html:text name="name" property="name" />
</c:otherwise>
</c:choose>



-----Original Message-----
From: Jeff Deskins [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 13, 2005 4:58 PM
To: user@struts.apache.org
Subject: Printer Friendly Struts Form

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.

Thanks,
Jeff



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to