how to set value of Input Box in Jsp
java, jsp
Solution
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")%>' />
Problem
``` <%@ 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