JSTL EL accessor translation priority when get and is both exist?

前端 未结 2 436
醉话见心
醉话见心 2021-01-24 07:32

This is sorta\' a two-part question.

I have a person object with a char attribute on it called \"active\". Person has a getActive() method that returns a char as expecte

2条回答
  •  醉酒成梦
    2021-01-24 07:49

    What you can do is test the character's value, something like

    Active
    

    As to which one gets priority isXXX() or getXXX() it's pretty much implementation specific.

提交回复
热议问题