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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.