PS- I have tried using jsp, and the problem I am facing is I am unable to pass the name entered (ex John) and pass it to the jsp scriptlet.
My Current approach:
From jsp I am calling a javascript function and from there I want to pass the name to database (please note that java script and jsp code are in the same page jsp).
<script>
s=<%=functionCall_To_Jsp_Scriptlet()%>
</script>
Can anyone suggest how can I achieve this?