I have been experimenting with the FrontMan 2.0 framework, and I created a view with the following location:
For my web.xml file, I have both the viewsPath parameter for both the CommandBroker and ViewBroker pointed to:
My Command class uses an annotation of @FrontmanCommand("test").
Both of these paths work:
This is expected, since both CommandBroker and ViewBroker have the same viewsPath init-parameter. However, this would cause a problem if the view is expecting the Command class to set up data, and the wrong URL (/contextPath/view/test) is used.
Given that information, is it better practice for the CommandBroker and ViewBroker have different viewsPath parameters?