Excellent! Thank you Hans... that's the clearest thing I've read all week..
exactly what I wanted!

Cheers!

Ken Martin

>> Can I set a variable using this syntax?
>>
>> <%= test ? "true" : "false" %>
>>
>> I'd like:
>>
>> <%= test ? q = "true" : q = "false" %>

> This is a Java language question, so you would have a better chance finding
> info about it in a Java programming book, or online tutorial, than in books
> and documents about JSP. Anyway, if you like to assign a String variable q the
> value "true" or "false" depending on a condition, you can do it this way in
> a JSP scriptlet...

===========================================================================
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