• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

How to use getText() in JSP

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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....


 
There is no greater crime than stealing somebody's best friend. I miss you tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic