From: "andy wix" <[EMAIL PROTECTED]> > I am trying to set a string variable in page scope and thought the following > would work: > <c:set var="background" scope="page" value="tableLightColour"/> > I was hoping that I would then be able use the variable as in the following: > <tr class="${background}"> > but it doesn't work. > If I just use: > <TR class="tableLightColour"> > the css attributes are seen as expected.
What does the generated HTML look like... do you see the literal ${background} in the HTML? Are you using a JSP 2.0 container, so that you expect expressions to be evaluated anywhere in the page? If you're not using JSP 2.0, try this: <tr class="<c:out value='${background}'/>"> -- Wendy Smoak --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]