Mistroni Marco wrote:
>         can anyone tell me how can i, using getProperty, set the value of a
> check box to 'checked`????? how is it possible to do that??
> please help me..
> thanx to all in advance

Using the ?: ternary operator inside an expression is what I do:

<INPUT NAME="chk1" TYPE="CHECKBOX"<%= bean.isXXX() ? " CHECKED" : "" %>>

The expression

    bean.isXXX() ? " CHECKED" : ""

evaluates to a string that is either " CHECKED" (note the leading space)
or the empty string, depending on whether the bean's XXX property is
true or not.

There is probably a better way to do this with custom tags in JSP 1.1,
but I'm stuck at JSP 1.0 for now...

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to