booleans
S Ahmed <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <CAG2rwuNxqju+C_fH=zxwDYu4Cw6B_Jsu8OEf5+awLxyXV--UkQ@mail.gmail.com> |
My java classes property is a boolean, and my getter/setters is like:
public boolean isSold() {
return isSold;
}
public void setSold(boolean sold) {
isSold = sold;
}
Trying to reference it in my .ftl is causing an error:
$(product.isSold}
Do I have to change my java class to use getter/setters like:
getIsSold
setisSold?
And then do:
${product.isSold}
?
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
FreeMarker-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemarker-user