tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giuseppe Briotti <g.brio...@mclink.it>
Subject Re: RE: question about jsp:element and jsp:attribute
Date Thu, 08 Apr 2004 14:43:01 GMT
I think that the problem is due to the evaluation of the if, as 
stated in a previous message.

Can you change the code as follows:

 <jsp:element name="fo:table-column">
   <jsp:attribute name="column-width">
     <jsp:expression>widths[i]</jsp:expression>
   </jsp:attribute>
   <jsp:scriptlet>
     if (bgColors[i] = null) {
            bgColors[i] = <a default value>
     }
   </jsp:scriptlet>
   <jsp:attribute name="background-color">
     <jsp:expression>bgColors[i]</jsp:expression>
   </jsp:attribute>
 </jsp:element>
 
where <default value> can be the background color of the page...

Another way (more complicated) is to use a bean and a tag :-)

Bye

G

--

Giuseppe Briotti
g.briotti@mclink.it

"Alme Sol, curru nitido diem qui 
promis et celas aliusque et idem 
nasceris, possis nihil urbe Roma 
visere maius."
                         (Orazio)



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message