This is my demo1.jsp page,
<body>
    <form id="myform" name="myform" method="post" action="demo2.jsp">-->
    <input type="text"  name="usnername" />
    <input type="text" name="password"/>        
    <input type="submit" value="go" onclick="window.location.href='demo2.jsp'" />
</form>
This is my demo2.jsp
<body>
    <%
    String Uname=request.getParameter("usnername");
    String Usecret=request.getParameter("password");
    out.println(Uname);
    out.println(Usecret);
    %>
Here this code is working fine but ,How can i get values from demo1 to demo2 without using sumbit button?i.e., <input type="submit" value="go" onclick="window.location.href='demo2.jsp'" /> bt using input type="button" can we send values.
 
     
     
     
     
     
     
     
    