B
B
Bekulan Kairoshov2018-05-11 13:53:57
Java
Bekulan Kairoshov, 2018-05-11 13:53:57

How to escape characters in jsp text variable?

Help. There is a jsp tag that calls a variable, let's say name, which in turn takes data from the database.
<c:set var="title" value="№${.name}"/>
So, if the value of the name variable contains a double quote, then when displayed in the browser. The quotes turn into ancii code. It is necessary to somehow escape the name variable after getting it from the database.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question