Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

Posted on 2011-02-21
2
284 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 500 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how can i turn the array into an object 4 45
running on tomcat not jboss eap 7.0 3 18
Filktering Alphabetically 8 30
How to filter by key press ? 6 20
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Find out what you should include to make the best professional email signature for your organization.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

860 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