What happens if you do something like this:
<div style="visibility: <c:out
value='${editDeForm.initialPrecVisiblity}'/>"/>
-----Original Message-----
From: Craig Berry [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 16, 2003 3:54 PM
To: [EMAIL PROTECTED]
Subject: Setting html tag attribute value
On a jsp page, I need to set the visibility of a div element based on
the value of a form attribute. The div is inside an <html:form> element
for the form in question (editDeForm). The fragment should look
something like:
<div style="visibility: ${editDeForm.initialPrecVisibility}" ...>
but JSTL EL attribute tags don't work in non-JSTL tags. I could go to
the trouble of doing a jsp:bean to grab the form bean, then call the
getter method explicitly to get the value, all inside <% %> in the attr
value, but that strikes me as being far clumsier than it should be using
the JSTL/Struts combo. So, can someone please point me in the right
direction to handle this?
--
Craig Berry
x7546
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]