I'm trying to walk a List that is passed into my view as a result of a simple query. Off of it I want to build dynamic links. The links use the ID fields from the result set that is passedin.
When I use the @link_to as follows it's ok
<#list subcategories as subcat>
<@link_to controller="main" action="category" query_string="catid=${
subcat.id!}&parentcatid=${subcat.parentcategoryid!}" class="alink" style="font-size:70%;font-color:blue;text-decoration:underline">${
subcat.name!""}</@>
</#list>
But I cannot specify protection in case of null value in this case. I think it is rare that it comes up since these are IDs but I'm sure thers a case where its needed. I was curious if theres a way to do something like:
<@link_to controller="main" action="category" query_string="catid=${
subcat.id!""}&parentcatid=${subcat.parentcategoryid!""}" class="alink" style="font-size:70%;font-color:blue;text-decoration:underline">${
subcat.name!""}</@>
Obviously it fails because the "" within the ${} is confusing the end of the query_string