•
•
•
•
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
![]() |
•
•
Join Date: May 2006
Posts: 57
Reputation:
Rep Power: 3
Solved Threads: 0
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??
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??
•
•
Join Date: May 2006
Posts: 57
Reputation:
Rep Power: 3
Solved Threads: 0
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?
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?
•
•
Join Date: Jan 2008
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 0
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
search Restaurants www.dineplaces.com
Online Shopping Site www.wowmycash.com
![]() |
•
•
•
•
•
•
•
•
DaniWeb JSP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Help regarding accessing HTML tag lib from JS (JavaScript / DHTML / AJAX)
- Need Help for Foxpro Migration and Java Struts (Java)
Other Threads in the JSP Forum
- Previous Thread: Emaul in jsp
- Next Thread: mouse over hyperlink popup menu


Linear Mode