It runs my TestCommand class as expected but when I redirect the client with commandContext.forwardToView("Index") in that class
it redirects the client as expected but the url changes from "http://localhost:8080/FrontControllerExample/" to "http://localhost:8080/FrontControllerExample/command/runTest"
This means that if I submit again it tries to post to "http://localhost:8080/FrontControllerExample/command/command/runTest" and an exception is thrown.
This does not happen however if i use the redirectToView method.
I am pretty positive I am making some newb mistakes here but for the life of me I cant figure out a solution to the problem.
Any help would be greatly appreciated.