0

Howdy,
for instance this JSTL snippet produces following result.

<a href="<c:url value="Profile">
    <c:param name="username" value="${requestScope.username}"/>
    <c:param name="logout" value="true"/>
    </c:url>">
    Logout
</a>

Result:

<a href="Messages?username=abc&logout=true">Logout</a>

Ofc this thing works. However, validating against XHTML 1.0 Strict ends up with:

cannot generate system identifier for general entity "logout"

                    href="Messages?username=abc&logout=true">Logout</a>

Apparently it doesn't like the '&' char... which is needed to be escaped. Is there ANY way how to deal with this with JSTL and not by hardcoding the path?

Cheers.

1
Contributor
1
Reply
2
Views
4 Years
Discussion Span
Last Post by yuri1969
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.