I have two JSP pages a.jsp
and b.jsp
. And a.jsp includes b.jsp
a.jsp
<jsp:include page="b.jsp" >
<jsp:param name="pageName" value="create" />
</jsp:include>
I am able to pass the value of variable pageName
to b.jsp where I retrieve it by
b.jsp
<h1>This is a ${param.pageName} page<br>
<input type="text" name="userInput">
Now I want to send the value in the input element userInput
back to a.jsp ( I want to use b.jsp as a child page with three parent jsp pages and the entered value will be different for all three parent pages a.jsp, b.jsp and c.jsp)
<h1>The user input entered in the child jsp is :<>
How can I achieve this?