jsp-tags


jstl formatNumber in input leads to NumberFormatException


in my jsp I have this:
<fmt:formatNumber type="number" minFractionDigits="2" value="${myVal}" var="val" />
and I use "val" in an input field. It displays nicely (e.g. 10,000.00).
But when the form is submitted I get a NumberFormatException which didn't happen without the formatting.
I haven't found a way around this - any clues?
Thanks,
John.
When the form is submitted this number (e.g. 10,000.00) goes back to your server(I assume).
In that case the formatted number is now a string with a comma between 10 and 000.00
Make sure what you submit back is a valid number without any characters like comma.

Related Links

Youtube onYouTubePlayerReady() function not firing
username and password cannot be resolved or is not a field
How page directive “extend” in jsp works?
Simple property not found?
Reusing JSP custom tags inside html
JSP Quiz process is not giving me the correct percentage scored
Refer the id variable of logic - iterate using jstl-el
Invalid tagdir attribute while web-fragment is used
JSP foreach tag for two variables
Adding Parameter to href tag before uri
Servlet exception stream closed jsp
creating and exporting a csv from Display tag table
bean write to number type id
restrict image file size in alloy UI
The function getContextPath must be used with a prefix when a default namespace is not specified
how can i retrive parameters from EncodeURL using jsp?

Categories

HOME
image
pypi
mockito
path-finding
raspberry-pi
cplex
bookshelf.js
cvs
sqlite-net-extensions
jira
spring-cloud-stream
icloud
wamp
metatrader4
modx-revolution
u-sql
systemc
ef-migrations
flux
emulator
visjs
autosys
sqlcipher
numerical-methods
dynamic-featured-image
wpfdatagrid
flink-streaming
bcd
google-cloud-endpoints-v2
uisplitview
fog
caret
hybridauth
asset-pipeline
android-kernel
geopositioning
io-redirection
android-fingerprint-api
dism
avro4s
ibpy
vao
unixodbc
gpx
apple-news
auto-update
menuitem
fault
jxcore
forever
worker-thread
dtexec
flutterwave
django-scheduler
query-performance
watchconnectivity
angular-strap
ableton-live
adxstudio-portals
impresspages
gridview-sorting
prettytensor
dataview
rtbkit
maven-tomcat-plugin
r-tree
sdhc
simple-framework
libressl
operation
iiviewdeckcontroller
dia
rake-task
network-interface
gui-test-framework
file-copying
fpml
heisenbug
p4java
java.nio.file
jmapviewer
blending
bulkloader
eventual-consistency
limejs
libstdc++
hosts-file
bubble-chart
windows-phone-7.1.1
netdna-api
xtype
self-extracting
imac
html-input
.nettiers
vc90
fixed-width
compiler-specific
firefox4
memory-size
javap
ctp4
aquaticprime
rtml

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App