Older versions of JSP did not support the second syntax.
As said Will Wagner, in old version of jsp you should always use c:out
to output dynamic text.
Moreover, using this syntax:
<c:out value="${person.name}">No name</c:out>
you can display the text "No name" when name is null.
c:out
also has an attribute for assigning a default value if the value of person.name
happens to be null.
As said Will Wagner, in old version of jsp you should always use c:out
to output dynamic text.
Moreover, using this syntax:
<c:out value="${person.name}">No name</c:out>
you can display the text "No name" when name is null.
c:out
also has an attribute for assigning a default value if the value of person.name
happens to be null.
As said Will Wagner, in old version of jsp you should always use c:out
to output dynamic text.
Moreover, using this syntax:
<c:out value="${person.name}">No name</c:out>
you can display the text "No name" when name is null.
Older versions of JSP did not support the second syntax.
c:out
also has an attribute for assigning a default value if the value of person.name
happens to be null.
You can explicitly enable escaping of Xml entities by using an attribute escapeXml value equals to true. FYI, it's by default "true".
Older versions of JSP did not support the second syntax.
Older versions of JSP did not support the second syntax.
You can explicitly enable escaping of Xml entities by using an attribute escapeXml value equals to true. FYI, it's by default "true".
Source: Stackoverflow.com