aspose file tools*
The moose likes JSP and the fly likes jstl [] operator Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "jstl [] operator" Watch "jstl [] operator" New topic
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: 61648
    
  67

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 ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by 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: 61648
    
  67

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jstl [] operator