0

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

Edited by pyTony: fixed formatting

2
Contributors
1
Reply
2
Views
11 Years
Discussion Span
Last Post by aniseed
0

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.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.