title: The function " " must be used with a prefix when a default namespace is not specified
body: <p>we are doing some weird handling of our form variables.  Anyway I have managed to get the variables from the request so i can do some database stuff.  Now i want to post back to the from so the select boxes are can be populated with the original selections.</p>
  
  <p>Here is an example of a select field:</p>
  
  <p>JSP:</p>
  
  <pre><code>Condition Code:&amp;nbsp;
  &lt;select size="1" name="filterCriteria('CONDITION_CODE').values"&gt;
    &lt;option value=""&gt;&amp;nbsp;&lt;/option&gt;
    &lt;c:forEach var="bean" items="${conditions}"&gt;
      &lt;option value="'${bean.code}'"&lt;c:if test="${bean.code == form.filterCriteria('CONDITION_CODE').values}"&gt; selected="selected"&lt;/c:if&gt;&gt;${bean.code}:&amp;nbsp;${bean.description}&lt;/option&gt;
    &lt;/c:forEach&gt;
  &lt;/select&gt; 
  &lt;input type="hidden" name="filterCriteria('CONDITION_CODE').fieldName" value="CONDITION_CODE"/&gt;
  &lt;input type="hidden" name="filterCriteria('CONDITION_CODE').operation" value="="/&gt;
  </code></pre>
  
  <p>As you can see the name is a function in the form:  <code>name="filterCriteria('CONDITION_CODE').values</code></p>
  
  <p>Here is the form:</p>
  
  <pre><code>private String[] fieldNames;
  
  private Map&lt;String, FilterCriteriaForm&gt; filters = 
      new HashMap&lt;String, FilterCriteriaForm&gt;();
  
  
  
  
  public String[] getFieldNames() { return this.fieldNames; }
    public Map&lt;String, FilterCriteriaForm&gt; getFilters() { return this.filters; }
  
  
  
     public FilterCriteriaForm getFilterCriteria(String fieldName)
      throws ServletException
  {
      FilterCriteriaForm filter = (FilterCriteriaForm)filters.get(fieldName);
  
      if (filter == null)
      {
          filter = new DetFilterCriteriaForm( requestAction );
          filters.put( fieldName, filter );
      }
  
      return filter;
  }
  
  
      public void setFilters(Map&lt;String, FilterCriteriaForm&gt; val) { this.filters = val; }
      }
  </code></pre>
  
  <p>Anyway normally I do something like this on the jsp to set the field back to what is in the form: <code>"&lt;c:if test="${bean.code == form.filterCriteria('CONDITION_CODE').values}"&gt; selected="selected"&lt;/c:if&gt;</code></p>
  
  <p>When I do this...I get this error:</p>
  
  <blockquote>
    <p>The function filterCriteria must be used with a prefix when a default namespace is not specified</p>
  </blockquote>
  
  <p>edit:</p>
  
  <pre><code>    Condition Code:&amp;nbsp;&lt;select size="1" name="filterCriteria('CONDITION_CODE').values"&gt;
                &lt;c:set var="condition" value="filterCriteria('CONDITION_CODE').values" /&gt; 
                           &lt;option value=""&gt;&amp;nbsp;&lt;/option&gt;
                           &lt;c:forEach var="bean" items="${conditions}"&gt;
                           &lt;option value="'${bean.code}'" &lt;c:if test="${bean.code == param[condition]}"&gt;selected="selected"&lt;/c:if&gt;&gt;${bean.code}:&amp;nbsp;${bean.description}&lt;/option&gt;
                           &lt;/c:forEach&gt;
                           &lt;/select&gt; 
                         &lt;input type="hidden" name="filterCriteria('CONDITION_CODE').fieldName" value="CONDITION_CODE"/&gt;
                         &lt;input type="hidden" name="filterCriteria('CONDITION_CODE').operation" value="="/&gt;
                         &lt;br/&gt;&lt;/br&gt;
  </code></pre>
  
  <p>THIS IS WHAT WORKED....I looked at the form again closer...took out the single quotes and used the getFilters():</p>
  
  <pre><code>&lt;select size="1" name="filterCriteria(CONDITION_CODE).values"&gt;   
               &lt;option value=""&gt;&amp;nbsp;&lt;/option&gt;   
                &lt;c:forEach var="bean" items="${conditions}"&gt;     
                &lt;c:set var="code" value="'${bean.code}'" /&gt;     
                &lt;option value="${code}" &lt;c:if test='${code == form.filters["CONDITION_CODE"].values[0]}'&gt;selected="selected"&lt;/c:if&gt;&gt;${bean.code}:&amp;nbsp;${bean.description}&lt;/option&gt;   
                &lt;/c:forEach&gt; 
                &lt;/select&gt; 
  </code></pre>