jQuery in Action, 3rd edition
The moose likes Other Application Frameworks and the fly likes Front Man - forwardToView alters the URL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Front Man - forwardToView alters the URL " Watch "Front Man - forwardToView alters the URL " New topic

Front Man - forwardToView alters the URL

Andre Reet

Joined: Nov 09, 2012
Posts: 1
HI there.

I am absolutely loving the frontman "framework". Its honestly everything I always wanted to do, many many thanks to Bear Bibeault!

The issue I am currently having is that if I post from a form on a jsp file to the servlet using :

<form name="input" action="command/runTest" method="post">

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.
I agree. Here's the link: http://aspose.com/file-tools
subject: Front Man - forwardToView alters the URL
It's not a secret anymore!