<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
        pageEncoding="ISO-8859-1"%>
  <html>
  <form action="index.jsp">
    <body>
      First INPUT:
      <input name="firstinput" type="text" value=<%=request.getParameter( "firstinput") %>>
      <br>
      <input type="submit" value="Submit">
      <% String first = request.getParameter("firstinput");
            out.println(first); %>
    </body>
  </form>
  </html>
Ths is My code when Put Input tax then after Button click its set to tax and Print Tax But when I tax Input "tax" then Value set to tax in Input Box while Print correct "tax" i want to set input Box value also "tax" when I take Input "tax" after click please help
You have both:
name="firstinput" 
and
name="fname"
for the same input field!
UPDATE: In addition to that, change:
value=<%=request.getParameter("firstinput") %>>
to:
value='<%=request.getParameter("firstinput")%>' />
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With