1

How can I access to some object methods using JSTL?

Let's suppose that my object is an instance of a Person class, and I have getName() method which I want to call inside a JSP page using JSTL.

Jason Aller
  • 3,541
  • 28
  • 38
  • 38
Karim
  • 11
  • 2

2 Answers2

0

You would use the following syntax:

${person.name}
Reimeus
  • 158,255
  • 15
  • 216
  • 276
0

Another way to display name is <c:out value="${person.name}"/>

Alex
  • 11,451
  • 6
  • 37
  • 52