Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Not seeing properties in JSP

 
gangashri patil
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64623
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Investigate the fmt tags of the JSTL. In particular: <fmt:message>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic