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,475
  • 28
  • 40
  • 37
Karim
  • 11
  • 2

2 Answers2

0

You would use the following syntax:

${person.name}
Reimeus
  • 155,977
  • 14
  • 207
  • 269
0

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

Alex
  • 11,238
  • 6
  • 35
  • 52