Newsletter sign-up
View all newsletters

Enterprise Java Newsletter
Stay up to date on the latest tutorials and Java community news posted on JavaWorld

JavaWorld Daily Brew

trying to use HTML form variables in Java


I'm trying to get some HTML form variables to use in Java.
here is the code:

/
function DisplayFindings();
//********************************************************

var dHours = parseInt(txtStatementHours);
var dUsageCost = parseFloat(txtKWHCost);
var dAmount = dHours * dUsageCost;
// display the potential rebate

var msg = "Your Statement Bill is: " + dAmount + "\n\n";
alert(msg);
}

********************

the HTML form Variables are :

txtStatementHours
txtKWHCost

They are user entered into the html form...

I'd really prefer not to use the "alert" function call.. I hate popups...

Any help would be appreciated.

Spartan117