Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Not seeing properties in JSP  RSS feed

 
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: 65824
134
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>
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!