Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jsp thread: help required Simple JSP Example


Message #1 by Muhammad Atif Fasihi <atif@p...> on Tue, 23 Jan 2001 21:21:46 -0800 (PST)
hi Atif,
 In your html file <input type=3D"text" size=3D"2" name=3D"numtimes">

 instead of type =3D text, u have given type=3Dget. So that is why you ha
ven't got
the result.
bye
vinod


Muhammad Atif Fasihi <atif@p...> wrote:
I'm very new to JSP

Please check this code  it is from "Professional JSP by wrox"

JSP code

<html>

<head>

<title>Simple JSP Example</title>

</head>



<body>



<p>

   <% int numTimes =3D Integer.parseInt(request.getParameter("numtimes"))
;

   for(int i =3D 0;i <=3D numTimes; i++)  {%>

	<h1>  Hello, World!<BR></h1>

   <% } %>

</p>

<%@ include file=3D"PageFooter.htm" %> 


</body>

</html>



Html code

<html>

<head>

<title>Simple JSP Example</title>

</head>



<body>



<p>How Many Times?</p>



<form method=3D"get" action=3D"SimpleJSP.jsp">

<input type=3D"get" size=3D"2" name=3D"numtimes">

<input type=3D"submit"

</form>



</body>



</html>



and if u have any code for begginers than mail me.

What is the format of writing JSP

Thank you

Atif


  Return to Index