Getting the value of a html:text property in javascript function

Hi all,

I am using struts framework and I need to get a value in a textfield both in java part and javascript part

<td><html:text property="identityNumber"> </td>

I dont know how can I reach the value user entered in that field in the javascript function

function verifyID(){

var identityUserEntered = ?

alert(identity);

}

[389 byte] By [BoraKia] at [2007-10-1 22:48:12]
# 1
the javascript expression document.forms[0].identityNumber.value should do it.You do realise you can't run java and javascript at the same time though right? The only way javascript can communicate with java is to submit an http request (normally submit form)
evnafetsa at 2007-7-13 14:53:10 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
what if we use an applet as communicater?
what.why.howa at 2007-7-13 14:53:10 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
J2J - Java to JavaScript integrationcheck it out:[URL] http://www.servletsuite.com/develop2.htm[\URL]
what.why.howa at 2007-7-13 14:53:10 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...