Hemant Prasad
Hemant Prasad

Reputation: 3

How to format number using either jstl tags or numberFormat in scriptlet tags

How to format number using either jstl tags or numberFormat in scriptlet tags?

I want to print the salary entered through form as:

Input?: 100000
Output: Rs 1,00,000

I've tried multiple things like:

Rs <%= NumberFormat("#,###,###").format(e.getSalary()) %>

but getting errors

Upvotes: 0

Views: 186

Answers (0)

Related Questions