Java Server Pages (JSP) - Submit

<%--------FormOrnegi.jsp----------%>

<html>
<body>
<form method="post" action="FormData.jsp">
<table>
<tr>
<td>Ad:</td>
<td><input type="text" name="txtAdi"/></td>
</tr>
<tr>
<td>Soyad:</td>
<td><input type="text" name="txtSoyad"/></td>
</tr>
<tr>
<td><input type="submit" name="btnGonder" value="Gonder"/></td>
</tr>
</table>
</form>
</body>
</html>

<%--------FormData.jsp----------%>

<%@ page import="java.util.*"%>
<%
out.println("Ad: "+request.getParameter("txtAdi"));
out.println("<br>Soyad: "+request.getParameter("txtSoyad"));
%>

Comments

Popular posts from this blog

Solution for "Can not obtain Oracle client information from registry"

Solution for the fault: "System.Diagnostics.Process.Start is not working on IIS, but working on ASP.NET Development Server"