posted 23 years ago
Hi,
1.
<%
String s = "Java";
%>
<script>
...
document.[formName].[fieldName].value="<%= s %>";
...
</script>
2.
<%
String x1 = null;
%>
<script>
...
var s1 = "JAVA";
if(s1 != "")
{
<%
x1="Any Computed Value or JAVA";
%>
}
...
</script>
<INPUT TYPE=HIDDEN NAME="Counter" VALUE="<%=x1%>">
Hope this helps.
Suresh Selvaraj
Sun Certified Java Programmer
Suresh Selvaraj, (author of JQuiz)<br />SCJP2<br /><a href="http://www.decontconsulting.com" target="_blank" rel="nofollow">www.decontconsulting.com</a>