This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use getText() in JSP

 
Rushabh Vashi
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all.....

I am creating my application using struts2...
I have define variable parameters in my .properties file....

the code of properties file is:

ordercheckout.creditholdflagbusiness1.message1=The order total $ {0} exceeds this account's credit limit of $ {1}

Now i want to use this label in my JSP page....

I have written a code lyk this in JSP....

<s:text name="%{getText('ordercheckout.creditholdflagbusiness1.message1',{#session.openOrder.orderTotal,#session.selectedServiceLocation.businessId.creditLimit})}" />

but it is showing me output like this....

The order total $ 2,748,586.5 exceeds this accounts credit limit of $ {1}

what sholud i do???


Help me...
Thank you in advance....


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic