Javatpoint Logo
Javatpoint Logo

JSTL Core <c:url> Tag

The < c:url > tag creates a URL with optional query parameter. It is used for url encoding or url formatting. This tag automatically performs the URL rewriting operation.

The JSTL url tag is used as an alternative method of writing call to the response.encodeURL() method. The advantage of url tag is proper URL encoding and including the parameters specified by children. param tag.

Let's see the simple example of < c:url > tag:

Output:

Note: CRUD is my project name in other words JSP application name.

JSTL Core Tags10
Next TopicJSTL Functions




Help Others, Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA