Ferenc Csizmadia wrote:
>
> Hi,
>
> I get "com.sun.jsp.JspException ... Missing term." using a
> JSP page to this code
> <jsp:setProperty name="searcher"
> property="similarityThreshold"
> param="<%= similarityThreshold %>" />
>
> The type of both the property and the variable is double.
>
> This works:
> <% searcher.setSimilarityThreshold(similarityThreshold); %>
>
> Also, all other properties work (though they are not
> double).
>
> I am using JSWDK WebServer Version 1.0.1.

The param attribute should contain the name of a request parameter
that you want to use to set the value of the property. If that's
what you'd like to do and the value is carried by the similarityThreshold
parameter, try

  <jsp:setProperty name="searcher" property="similarityThreshold"
    param="similarityThreshold" />

or

  <jsp:setProperty name="searcher" property="*" />

which sets all properties to the value of request parameters with the
same name.

If you have the value in a variable named similarityThreshold, use
the value attribute with a JSP expression instead, i.e.

  <jsp:setProperty name="searcher" property="similarityThreshold"
    value="<%= similarityThreshold %>" />

Hans
--
Hans Bergsten           [EMAIL PROTECTED]
Gefion Software         http://www.gefionsoftware.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to