This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Struts and the fly likes How can I get url from properties file in struts-2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How can I get url from properties file in struts-2" Watch "How can I get url from properties file in struts-2" New topic
Author

How can I get url from properties file in struts-2

hemanth kumar dada
Greenhorn

Joined: Jul 19, 2012
Posts: 1
I want to get a URL from my global.properties file . How can i get it done.

<a href="javascript:winopen('${pageContext.request.contextPath}/main/order_search?orderId=${orders.id}')">
${orders.orderMonth}</a>

I want the highlighted url to be brought from global.properties file. In that file I am writing it as

url=javascript:winopen('${pageContext.request.contextPath}/main/order_search?orderId=${orders.id}')

I am able to get labels from the properties file, but unable to set url's to that.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can I get url from properties file in struts-2
 
jQuery in Action, 3rd edition