| Author |
jstl [] operator
|
geeta lalchandani
Ranch Hand
Joined: Jun 07, 2005
Posts: 118
|
|
Have read that we can use [] operator in jstl for vars tht dont follow java rules. i have a bean with var '_name' but the getters setters as getName and setName. How do i access this in a jsp using jstl
|
 |
Adeel Ansari
Ranch Hand
Joined: Aug 15, 2004
Posts: 2874
|
|
As far as I know, you can't. Bear Bibeault would be the most helpful person for JSTL problems.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56521
|
|
What you name an internal instance variable does not matter in the least. If your accessor is getName(), the property is name regardless of any bean internals. [ November 21, 2005: Message edited by: Bear Bibeault ]
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
geeta lalchandani
Ranch Hand
Joined: Jun 07, 2005
Posts: 118
|
|
Thanks Bert. It works.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56521
|
|
Bert?  [ November 22, 2005: Message edited by: Bear Bibeault ]
|
 |
Vishnu Prakash
Ranch Hand
Joined: Nov 15, 2004
Posts: 1026
|
|
Probably HFSJ influence.
|
Servlet Spec 2.4/ Jsp Spec 2.0/ JSTL Spec 1.1 - JSTL Tag Documentation
|
 |
geeta lalchandani
Ranch Hand
Joined: Jun 07, 2005
Posts: 118
|
|
|
M sorry... Bear
|
 |
 |
|
|
subject: jstl [] operator
|
|
|