aspose file tools*
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
Author

FrontMan servlet-mapping

Justin Carter
Greenhorn

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:
/WEB-INF/views/test.jsp

For my web.xml file, I have both the viewsPath parameter for both the CommandBroker and ViewBroker pointed to:
/WEB-INF/views

My Command class uses an annotation of @FrontmanCommand("test").

Both of these paths work:
/contextPath/command/test
/contextPath/view/test

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: FrontMan servlet-mapping