This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes Numberfromat Exception.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Numberfromat Exception.." Watch "Numberfromat Exception.." New topic
Author

Numberfromat Exception..

Pranit Saha
Ranch Hand

Joined: Sep 09, 2001
Posts: 130
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

Joined: Oct 19, 2000
Posts: 91
int num=10;
<jsp:setProperty name="bn" property="height" value="<%=num%>" />
should work properly
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Numberfromat Exception..
 
Similar Threads
Help! problem while using logic:iterate with HashMap
continue
Indefinite loop
Flow control
Logic:iterate How to break the loop for a certain value in collection