Hi all,

I'm trying to incorporate tag files into my Struts application, but I'm
running into the problem of the attributes and tag body not being
displayed within the JSP calling the tag file.  The regular HTML from
the tag file is being included, but the attributes, such as ${color},
are not being replaced with their proper values, nor is the body 

Here is my tag, areaBox.tag, simplified:

<%@ attribute name="color" %>
<%@ attribute name="title" %>

<table border="0" width="100%">
  <tr>
    <td bgcolor="${color}">${title}</td>
  </tr>
  <tr>
    <td>
      <jsp:doBody/>
    </td>
  </tr>
</table>


Next, here is my JSP that is calling the tag file:

<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
...
    <tags:areaBox color="#0000FF" title="Login already">
      This is the body of my area box.
    </tags:areaBox>

When the page loads, my HTML is shown, but ${color} and ${title} appear
just like they are defined in tag file, ${color} and ${title}.  And my
tag body "This is the body of my area box." in this case, is not being
included either.

How do I correct this problem?  Thanks in advance for your help!


Regards,
Andy


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

Reply via email to