I am trying to do a HTTP Post and i am told the best way is to use java, the code i have is

<script language="JavaScript">
<!-- //
document.xmlpost.XMLData.value = "myvalue";
setTimeout( "document.xmlpost.submit();", 5);
// -->

and I have to put an xml string into "myvalue"

how do i make this string available to Java?

Thanks in advance