1

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)?

Ori Marko
  • 56,308
  • 23
  • 131
  • 233

1 Answers1

0

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

Ori Marko
  • 56,308
  • 23
  • 131
  • 233