Javatpoint Logo
Javatpoint Logo

JSTL Core <c:redirect> Tag

The < c:redirect > tag redirects the browser to a new URL. It supports the context-relative URLs, and the < c:param > tag.

It is used for redirecting the browser to an alternate URL by using automatic URL rewriting.

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

Output:

Since the value of the variable 'url' is 0 the page gets directed to the http://javatpoint.com .






Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA