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

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?
onclick tag giving error in h:commandLink
Displaytag - How to pass hidden value in url?
Embedding Tag Files in a JAR
Errors when the compiler is trying to build a custom JSP tag based on an Java Bean
Creating nested custom tag using jsp2 tag files
Unable to access session on JSP
Dealing with <html:options>
No tag “tableFacade” defined in tag library imported with prefix “jmesa”
how to refer values of one jsp file to other jsp
incorrect username and passwords
creating the welcome page
How to use list object in <c:forEach tag?

Categories

HOME
wso2-am
testng
netsuite
openstack
relay
setup-deployment
fsm
installshield
wamp
basic
u-sql
resize
zebra-printers
normalizr
oxyplot
django-cms
lucene.net
introduction
ml
captiveportal
spark-jobserver
dynamic-featured-image
user-interaction
ping
gsoap
google-cloud-endpoints-v2
titanium-mobile
column-family
pim
mapbox-gl
host
web-mining
vapor
ssjs
hue
elasticsearch-plugin
greenrobot-eventbus
botbuilder
businessworks
angular2-meteor
xml-documentation
rails-routing
promela
mu
magma
google-perftools
sts-springsourcetoolsuite
multi-level
asp.net-4.5
skype4py
hover-over
whois
bgp
dlna
ptrace
tform
cloudbees
vhd
ora-00900
sdhc
metaclass
comobject
jmeter-maven-plugin
kcachegrind
muse
method-parameters
vstest.console.exe
rake-task
fpml
wordpress-theme-customize
gulp-less
android-radiobutton
kgdb
ember-charts
flexmojos
pyhdf
farseer
inbox
ember-app-kit
pygit2
free-variable
quickdialog
ticoredatasync
online-compilation
removeclass
pendrive
adk
tomcat-valve
radcombobox
filtered-index
castle-monorail
exchange-server-2003
simpletest
sustainable-pace
zend-decorators

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