I want to call java method with parameter form .vm file can you please give me a simple example for it.
mail.vm
<HTML>
<head>
<script >
function functionUpdate(val){
alert(val);
alert(getElementById(val).value);
//now here i wanna call java method from my java class with 'val' as parameter
}
</script>
</head>
<BODY>
<br>
<span style='font-family:Arial; font-size:13px;'>
<p>Dear User,
<p>Please Rate the Module with your experience
<form name="ratings" >
<input id="$rate" name="$rate" value="1" type="submit" onclick="functionUpdate('$rate');">
</span>
</BODY>
</HTML>
thank you