display the given input
11:29:00 PM vikas 0 Comments Category : Java
WAP
to display the given input
` SHOWDATA.jsp
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP page</title>
</head>
<body>
<h1>WAP to display the given input</h1>
<%!String pname1,pname2;%>
<% pname1=(String)request.getParameter("pname1");
pname2=(String)request.getParameter("pname2");
%>
company is<%=(String)session.getAttribute("cname1")%>
with following products<%=pname1%><%=pname2%>
Owner of the comp-any is:<%=(String)session.getAttribute("oname1")%>
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP page</title>
</head>
<body>
<h1>WAP to display the given input</h1>
<%!String pname1,pname2;%>
<% pname1=(String)request.getParameter("pname1");
pname2=(String)request.getParameter("pname2");
%>
company is<%=(String)session.getAttribute("cname1")%>
with following products<%=pname1%><%=pname2%>
Owner of the comp-any is:<%=(String)session.getAttribute("oname1")%>
</body>
</html>