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

jstl formatNumber in input leads to NumberFormatException
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

Categories

HOME
sendgrid
google-chrome-extension
bluetooth
reflection
image-processing
reserved
grep
cplex
react-router
spring-jdbc
mvvmcross
mouse
autotools
virtualization
google-translate
here-api
numeral.js
mapserver
spring-tool-suite
vb.net-2010
moonmail
leiningen
zebra-printers
google-static-maps
cx-freeze
css-animations
kvc
crosstab
android-widget
entitlements
replaceall
dbclient
large-file-upload
subdomains
google-cloud-nl
media-queries
react-chartjs
javascriptcore
http-get
hybridauth
mmenu
bytecode-manipulation
wixsharp
swift3.0.2
botbuilder
import-from-excel
sas-jmp
atomicity
qsslsocket
multipeer-connectivity
hendrix
tizen-native-app
worker-thread
directory-structure
nodebb
flutterwave
imanage
sonarlint-vs
topbeat
azure-sdk
holder.js
hover-over
unity-networking
tcpserver
vhd
ionic
key-management
streambase
tablelayout
knuth
asp.net-web-api-odata
wordpress-theme-customize
googlemock
google-reader
phpthumb
rtmfp
datagridviewcolumn
openlaszlo
intentservice
spring-io
odata4j
jplaton
pvrtc
dice
jspinclude
jquery-ui-layout
coredump
locate
imac
thunderbird-lightning
multi-tier
ti-dsp
eqatec
grid-system
.net-1.0
uiq3

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