Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

html logic tags - checking for a collection size greater than 1

Posted on 2011-02-21
2
Medium Priority
?
291 Views
Last Modified: 2012-05-11
I have a collection that I showing on my jsp page.  Im using a html:select tag and I also default the first value to "Please select a filter".  I want this selection to be totally hidden if there are none.  I was trying to use the html tag notEmpty but still shows the selection.  I know the consoleFilters selection  has no entries.  ConsoleFilters has one attribute, filterName.

Current code that is not working....

<logic:notEmpty name="CONSOLEFILTERS" property= "filterName">
     <tr>
           <td>            
        <html:select property="filterNameSelected" style="width: 200px;">
              <html:option value="ALL">Please Select a Filter</html:option>
              <html:options collection="CONSOLEFILTERS" property="filterName" labelProperty="filterName"/>
         </html:select>
            </td>
        </tr>
</logic:notEmpty>
0
Comment
Question by:TheVeee
2 Comments
 
LVL 9

Accepted Solution

by:
ioanton earned 2000 total points
ID: 34942802
Try by removing the property attribute:

<logic:notEmpty name="CONSOLEFILTERS">
0
 
LVL 5

Author Closing Comment

by:TheVeee
ID: 34942831
CHA-CHING, Thanks!
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to implement server side field validation and display customized error messages to the client.
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Suggested Courses

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question