File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Application Frameworks and the fly likes FrontMan servlet-mapping Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "FrontMan servlet-mapping" Watch "FrontMan servlet-mapping" New topic

FrontMan servlet-mapping

Justin Carter

Joined: Jan 13, 2010
Posts: 9
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?

Thanks for your help.
I agree. Here's the link:
subject: FrontMan servlet-mapping
It's not a secret anymore!