Issue
I have some data that is store through textarea and I need to retrieve that data back into the textarea whenever i click edit button:
<textarea row="5" col="40" name="description"></textarea>
I want this textarea value back into the same textarea when edit button is clicked. I have used EL like this one:
<textarea row="5" col="40" name="description" value="${param.description}"></textarea>
But this shows that Undefined attribute name (value)
How can I get value into textarea using EL(Expression Language)?
Solution
You should put the value inside textarea tag:
<textarea row="5" col="40" name="description">${param.description}</textarea>
Follow @BalusC comment , see How to prevent XSS attack in JSP
Answered By - user7294900