• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Numberfromat Exception..

 
Pranit Saha
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
anand chawla
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
int num=10;
<jsp:setProperty name="bn" property="height" value="<%=num%>" />
should work properly
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic