I have a textarea in a JSP that loses its text value after the back button of the browser is clicked. I found the following not totally syntactically correct possible solution:
<% String inputtext = "";
if(textarea.getParameter() != "" && != null)
inputtext = text.getParameter();
<textarea name="textarea" rows="20" cols="20"<%=inputtext%></textarea>
Can someone provide a different way, agree that this way will work, or modify this way?
I'm not near my work PC where I can test this.