Please tell me if we can call java inside javascript function ?
Use JSP code
<% // Respond to the application with 1) result, 2) update, and 3) updateid values String result = "blablabla"; out.print(result); %>