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>&nbsp;</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

Your problem description does not make much sense to me and you seem to be 'sticking your tongue out' too often in the code. ;)

It might help if you post a simpler description of what you want to achieve and what you have or haven't.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.