Multiple choice technology platforms and products

Which JSTL tag should be used to create a new URL reference in a jsp?

  1. <c:href>

  2. <c:link>

  3. <c:out>

  4. <c:url>

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The JSTL tag creates properly formatted and encoded URLs in JSP pages. It handles URL rewriting for session tracking (adding jsessionid when cookies are disabled), supports query parameters, and ensures proper URL encoding. and don't exist in JSTL; is for value output.