I\'m facing a strange problem here. The situation is like this:
I\'m trying to set a value for an input
tag from a java string:
As everybody said use double quotes
<input type="text" name="line" value=<%=line%> ></input>
The above line is only for correct your line and,if possible please do not use scriplets.Those are expired.
Please go through this How to avoid Java code in JSP files?
<input type="text" name="line" value="<%=line%>"></input>
Put double quotes around the value like this -
<input type="text" name="line" value="<%=line%>"></input>
HTML uses space to separate different attributes/tags.