<p>Below is what I'm trying to achieve. The problem is "errors" is not defined. If I remove my match logic, the errors are displayed on the web page. Is there anyway of evaluating the text the error contains?</p>

<pre><code>&lt;logic:messagesPresent&gt;
    &lt;tr&gt;
        &lt;td class="errorcicon"&gt;&lt;img src="images/icon_caution.gif" width="18" height="18" alt="Caution" /&gt;&lt;/td&gt;
        &lt;td&gt;&lt;/td&gt;
        &lt;td colspan="4"&gt;&lt;html:errors /&gt;&lt;/td&gt;
    &lt;/tr&gt;
&lt;/logic:messagesPresent&gt;


&lt;logic:match name="errors" property="text" value="Service Start date is required" &gt;
    &lt;% pageContext.setAttribute("NOORIGIONALSERVICEDATE", "-1");%&gt;
&lt;/logic:match&gt;
</code></pre>

Have you tried the .siblings() method?
```
```
$(this).siblings('img.expander').attr('src','img/content/info-close.gif');
```
```