Using global config to set the default page for @Action("/") or @Action("/a/b/c/")
action path end with "/"
for example:
@Action("/") => /index.jsp
@Action("/a/b/c/")=>/a/b/c/index.jsp
maybe in joy.props:
servletDispatcherActionResult.defaultViewPageName=index
index.jsp is a global configuration and can be override.
After config the props value,
then the target check of the ServletDispatcherActionResult should be
When I using jodd 4.3 the following action code is:
And when I visit http://localhost/ ,the response is 404. jodd log:
Current behavior
No default page and 404
Expected behavior
Using global config to set the default page for @Action("/") or @Action("/a/b/c/") action path end with "/" for example: @Action("/") => /index.jsp @Action("/a/b/c/")=>/a/b/c/index.jsp maybe in joy.props:
servletDispatcherActionResult.defaultViewPageName=index
index.jsp is a global configuration and can be override. After config the props value, then the target check of the ServletDispatcherActionResult should be