I'm trying to stop a search page returning results without page titles. I'm trying to write an if statement to tell it to skip the record in this case. My code is
<table border="0" width="99%">
<cms:pageList>
<% if ('<cms:page display="title"/>' != null) {
%>
<tr>
<th class="pageAbstract"><a href="<cms:page display="href"/>">View <cms:page display="title"/></a></th>
</tr>
<tr>
<td><cms:page display="abstract"/></td>
</tr>
<tr>
<td> </td>
</tr>
<%
}
%>
</cms:pageList>
I know this probably makes no sense but if anyone can advise it would be a big help. I'm new to JSP (I've worked in VBA for two years and only just started looking at web pages).
Many Thanks, B