sulaiman
sulaiman

Reputation: 341

JSP - redirect or rewrite with parameters ( POST )

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

Answers (1)

Jaydeep Rajput
Jaydeep Rajput

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

Related Questions