Use JSTL to Create URL From Form Input
index.jsp
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
the c:url action
This page takes 3 values that you specify, and forwards them to another JSP.
That JSP will create a URL to another page, that then extracts the
parameters and displays them.
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
the c:url action (3)
List of query string parameters:
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
the c:url action (2)
This page receives the values you specified, and creates a URL that contains
them.
The generated URL is
.
Click
'>here to view the it.