[Logo]
Forums Register Login
Numberfromat Exception..
int inum = 10;
How can i write this value to the height property(int) of a bean from a jsp..
<jsp:setProperty name="bn" property="height" value="+inum+" />
It gives NumberFormatException.. pls help..
Pranit..
int num=10;
<jsp:setProperty name="bn" property="height" value="<%=num%>" />
should work properly
Destroy anything that stands in your way. Except this tiny ad:
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature


This thread has been viewed 438 times.

All times above are in ranch (not your local) time.
The current ranch time is
Apr 26, 2018 16:52:14.