Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9114167
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:08:21+00:00 2026-06-17T04:08:21+00:00

I need a solution to a application wide problem (gf 3x, jdk1.6). The default

  • 0

I need a solution to a application wide problem (gf 3x, jdk1.6). The default rounding mode is half_even in java. So the jstl and the decimalformat that are used in the web app should be changed to use half_up. Unfortunately the does not support setting rounding mode. I can define a new method for each class referenced or I can write my own custom tag library.

Which one would you recommend ? Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T04:08:22+00:00Added an answer on June 17, 2026 at 4:08 am

    Unfortunately, I could not find a global system property that will let me change it across all. This could be done, at the application level to define a decimal format, that’s per thread and used accordingly by writing a filter and injecting into a request. I have not tried the approach since I did not like the idea.

    Instead, I have created a separate method for each attribute that needed rounding to be done in HALF_UP. The application I work on uses jsp code as well as jstl. For jsp, it is easy enough to set the rounding mode for decimalformat. However, there is no such way for JSTL, for JSTL, I went with creating a method that did the rounding.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new to android application development. I need a solution for setting random
I need a solution for the really common but important issue that i am
Simple question: I need a solution so that I can find, lets say names,
I need a captcha solution for GAE in Java. My clients only have access
We are in need of a solution that will allow us to access a
This is a very simple complexive query that I have. I need the solution.
Problem: I am working on a ASP.NET 2.0/C# Application and I need to do
HTML5 Application Cache not working in ie8+, so i need some of the solution
I'm building an application which needs to filter some mouse clicks system-wide. That is,
I need a solution for a conditional WHERE clause in SQL Server. I can't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.