• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

FrontMan servlet-mapping

 
Justin Carter
Greenhorn
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:
/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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic