<?xml version="1.0" encoding="UTF-8"?>

<section id="example">
  <title>Example</title>
  <source>
      <![CDATA[
<mak:attribute name="pattern" var="pattern" exceptionVar="exception"/>

<% if (exception!=null) {
     pageContext.setAttribute("pattern", (String)pattern+"%");
%>
   <mak:list from="type t" where="t.field like $pattern" >...</mak:list>

<% } else { %>
   No pattern argument. Please indicate one.
<% } %>
      ]]>
  </source>
</section>
