This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes JSP and the fly likes Not seeing properties in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Not seeing properties in JSP" Watch "Not seeing properties in JSP" New topic

Not seeing properties in JSP

gangashri patil

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

Joined: Aug 11, 2007
Posts: 4639

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: ${}
Rank: ${user.rank}
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60077

Investigate the fmt tags of the JSTL. In particular: <fmt:message>

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Not seeing properties in JSP
Similar Threads
datas into javascripts..
getting result in textfield using jlist
Error in JSP[Unexpected Error]
Want to change Application Property at startup
javax.servlet.jsp.JspException: Missing message for key "registration.text.ip"