User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 423,693 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,268 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 1792 | Replies: 2
Reply
Join Date: May 2006
Posts: 57
Reputation: kaushik259106 is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
kaushik259106 kaushik259106 is offline Offline
Junior Poster in Training

Help Getting key value from property file in jSP

  #1  
Dec 25th, 2007
Is it possible to get the key value of any property file through JSP..
Let me explain..
I have following keys in my application.properties file.
it has
my.a=http://apple.com
my.b=http://ball.com
my.c=http://cat.com

Now i want to access this from my jsp..
i tried to access like this..
<fmt:message id="alphabets" key="my.a" />
I was able to access!
But problem is if i want to put it with in

<a href=" Here i want "my.a" "></a>

how do i do that so that in the web page it comes as http://apple.com with hyperlink??
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2006
Posts: 57
Reputation: kaushik259106 is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
kaushik259106 kaushik259106 is offline Offline
Junior Poster in Training

Re: Getting key value from property file in jSP

  #2  
Dec 25th, 2007
any body there!
I tried something like this..
<span id='url'><fmt:message id="alphabets" key="my.a" /></span>

But how do i put it in href... Stucked! Any one?
Reply With Quote  
Join Date: Jan 2008
Posts: 5
Reputation: lovely12 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
lovely12 lovely12 is offline Offline
Newbie Poster

Re: Getting key value from property file in jSP

  #3  
Jan 9th, 2008
yes it is possibe,i have already done this one
web site Developer www.wowmycash.com
search Restaurants www.dineplaces.com
Online Shopping Site www.wowmycash.com
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JSP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JSP Forum

All times are GMT -4. The time now is 12:02 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC