First of all edit your {project_root}/src/main/webapp/WEB-INF/spring/webmvc-config.xml
and add new mvc:view-controller
definition for your new page. Something like:
<mvc:view-controller path="/custompage" />
Then open {project_root}/src/main/webapp/WEB-INF/views/views.xml
and add the following definition:
<definition extends="public" name="custompage">
<put-attribute name="body" value="/WEB-INF/views/custompage.jspx"/>
</definition>
And add your custompage.jspx
to the {project_root}/src/main/webapp/WEB-INF/views/
folder.
And then edit {project_root}/src/main/webapp/WEB-INF/views/menu.jspx
and new menu:item
with url="/custompage"
.
I think it should work.
I made some mistakes and it took me long time to figure it out.
What it does is add “/WEB-INF/views/custompage.jspx" this page to the path /custompage