What is <jsp:param> action?

To pass parameter values to other actions, you can use <jsp:param name=”” value=””/>.
You can use it withen <jsp:include> , <jsp:forward> and <jsp:plugin>. If it is used inside any other action except these three then translation error occears.

Passing parameter to customize <jsp:include>
<jsp:include page=”header.jsp”>
<jsp:param name=”name” value=”bhabani”/>
This is the request parameter inside the <jsp:include> body.
Here is the question who will use that param?
The included page(header.jsp) will use that param.
${param.name} (in header.jsp)

No comments:

Post a Comment