aspose file tools
The moose likes Struts and the fly likes How to use getText() in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "How to use getText() in JSP" Watch "How to use getText() in JSP" New topic
Author

How to use getText() in JSP

Rushabh Vashi
Greenhorn

Joined: Apr 27, 2011
Posts: 17
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....


 
I agree. Here's the link: http://zeroturnaround.com/jrebel/download
 
subject: How to use getText() in JSP
 
Similar Threads
How to replace values in a string?
Struts 2 iterator properties file read problem
adding dynamic value to properties file.
Doubt in checkboxlist
ActionMessage is not working