Whenever I send request to the server it takes duplicate entry in url.
For detailed description please see below example.
@Controller
@RequestMapping("v")
public class ControllerDemo{
@RequestMapping("test")
public String view()
{
return "index.jsp";
}
@RequestMapping("view")
public String view()
{
return "login.jsp";
}
}
First request to Url: Https:localhost:8080/v/test When I go for a different request from test.jsp then it executes the following pattern Https:localhost:8080/v/v/view
In Test.jsp
<form action="v/view">
//Some data and submit
</form>
It will send the request in url: https:localhost:8080/v/v/view instead of localhost:8080/v/view
Please let me know if you need to any other info or project configuration.