0

I need to redirect https://ipaddress/index.jsp to https://ipaddress/v1/index.jsp

Tomcat Version : 7.0.32

I have a valve configured in server.xml <Valve className="com.mycompnay.tomcatvalve.RedirectValve" portal="v1" />

Here I have a class that extends ValveBase and I do response.sendRedirect after matching some patterns. This works for GET request. But how do I redirect POST requests.

Thanks in advance

user3733071
  • 31
  • 1
  • 4

1 Answers1

0

Try giving in this format it shld work response.sendRedirect(response.encodeRedirectUrl("/v1/index.jsp"))

I assume you have used a Servlet and your redirecting through that

Ragesh Kr
  • 1,573
  • 8
  • 29
  • 46