JSP Actions, jsp:forword Action Tag in JSP, how to redirect the page from one page to another with parameters
The <jsp:forword> Action tag is used to redirect or forword the control or request to any other page. The <jsp:forword> Action tag is similar to the response.sendRedirect() method but the difference is with <jsp:forword> we can send the parameters to the another page but response.sendRedirect() method does not have this functionality.
Example of <jsp:forword> Tag:-
without parameter
<jsp:forword page="anotherPage.jsp"/>
with parameter
<jsp:forword page="anotherPage.jsp">
<jsp:param name="varName" value="anyValue"/>
</jsp:forword>
Note:-With the <jsp:forword> tag we can forword the request to any other page it may be jsp, html or any other resourse.
Thanks for Visiting
The <jsp:forword> Action tag is used to redirect or forword the control or request to any other page. The <jsp:forword> Action tag is similar to the response.sendRedirect() method but the difference is with <jsp:forword> we can send the parameters to the another page but response.sendRedirect() method does not have this functionality.
Example of <jsp:forword> Tag:-
without parameter
<jsp:forword page="anotherPage.jsp"/>
with parameter
<jsp:forword page="anotherPage.jsp">
<jsp:param name="varName" value="anyValue"/>
</jsp:forword>
Note:-With the <jsp:forword> tag we can forword the request to any other page it may be jsp, html or any other resourse.
Thanks for Visiting
{ 0 comments... read them below or add one }
Post a Comment