I'm using Java to display a wml page in Opera.

My code:
Java Code:
private void browserDisplayEnd() throws IOException
  out.write(("<p> Answer: <input name=\"answer\" size=\"20\"/> </p>" +
  "<p> <anchor> Submit it <go href = \"#card2\" /> </anchor></p></card>").getBytes());

I know how to get the answer the user entered in wml using $(answer), but how do I send that value to my getOutput() function. It needs to be a number value?