Integer value typed into the query attributes task displays as 10 decimal digits of zeros on the out-of-the-box web application from ArcGIS Server Java 10.
This issue is not reproducible in the current release of the software. If this problem occurs, contact Esri Technical Support (for customers in the United States) or Esri distributor (for customers outside of the United States) to resolve it.