Win a copy of Practical SVG this week in the HTML/CSS/JavaScript 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
Posts: 65542
110
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>
 
I think I'll just lie down here for a second. And ponder this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!