Reputation: 341
we already shared a URL to other systems and they are sending post request with 3 parameters that we already agreed.
But now we have to change it, so I don't want to tell them anything about this change
I need to find a way to redirect the post request from the old JSP page to a new one
or maybe from the old JSP page it self sending new request with the 3 parameters that I already know
I don't want to use javascript for this, I need it to be done in JSP
hope that you can help me with this :-)
Upvotes: 0
Views: 1175
Reputation: 3673
<jsp:forward page="relativeURL | <%= expression %>">
<jsp:param name="parametername" value="parametervalue | <%=expression%>" />
</jsp:forward>
This should help you. For more details: https://www.javatpoint.com/jsp-action-tags-forward-action
Upvotes: 1