Would I be right in thinking you have two pages? Page A contains your text box and a link or button, which links to page B containing your applet?
If so, you can place the content of the text box in a GET parameter and then use script to add that as an applet parameter tag.
That'll work but be honest this is better achieved via servlet code (PHP, JSP, whatever) so as to avoid the need for client side script.