float primitive to object
Posted by pairbrother on June 23, 2006
public class Test
{
public static void main(String[] a)
{
System.out.println("woohoo!");
float f = 5.0f;
System.out.println("woohoo!" + f);
float f1 = Float.valueOf("100.0").floatValue();
Float f2 = new Float(f1);
System.out.println("woohoo!" + f1 + ":" + f2);
}
}
keep a variable in javascript text = "The verified value from the system is "
on getting the new value from the server…do 2 things
span.innerhtml = text + retval; and
document.workitemform.adjamoun.value = retvalue
In the ajax action
keep an "evenOdd" variable in session which will be 0 or 1
if it is 0, send the same value back and change the evenOdd to 1
if it is 1, modify the value and change the evenOdd to 0
on getting the new value from the server via ajax..repl