Send data from html to jsp page



first.html

 <html>
<body>

<form action="second.jsp" method="post">

 Name :<input type="text" name="name">
 <input type="submit" value="SUBMIT">
</form>

</body>
</html>

User Input :- KK

****************************

Second.jsp

 <html>
<body>

Hi <%= request.getParameter("name") %>


</body>
</html>

Output:-

Hi KK

0 comments :