| Author |
Not seeing properties in JSP
|
gangashri patil
Greenhorn
Joined: Sep 21, 2011
Posts: 3
|
|
|
I am getting key and respective values of key of properties file by using Resource Bundle. Now i want to display the values on jsp but m not getting how to do this?
|
 |
Pat Farrell
Rancher
Joined: Aug 11, 2007
Posts: 4422
|
|
you use EL (expression language) after you have made the values accessible by storing them, or a reference to them in the servlet context.
So once you have stored your Person object, say with the name "user" you can
access it with EL as
Name: ${user.name}
Rank: ${user.rank}
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56161
|
|
|
Investigate the fmt tags of the JSTL. In particular: <fmt:message>
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
 |
|
|
subject: Not seeing properties in JSP
|
|
|