Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

FrontMan servlet-mapping  RSS feed

Justin Carter
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!