Page 1 of 1
where is the value for webAppRootKey value
Posted: Mon Aug 12, 2013 11:37 am
by bambulyator
So I assume the entry below is how Broadleaf resolves the home page for the site app. I just can't find where the value (site.root) is being mapped to an actual page. Is it somehow being mapped from db mappings?
<context-param>
<param-name>webAppRootKey</param-name>
<param-value>site.root</param-value>
</context-param>
Any help is appreciated.
Re: where is the value for webAppRootKey value
Posted: Mon Aug 12, 2013 12:33 pm
by phillipuniverse
No this is definitely not the case.
The home page is loaded from the 'Home' category. You can look at load_catalog_data.sql and see where the home category is insterted with the URL set to '/'.
This is picked up by the handler mappings (CategoryHandlerMapping specifically in this case, but there is also PageHandlerMapping and ProductHandlerMapipng) defined in applicationContext-servlet.xml.
Re: where is the value for webAppRootKey value
Posted: Wed Aug 14, 2013 1:37 pm
by bambulyator
Thank you very much for pointing me in the right direction. I think it's clear. now I just need to add a sub-category and see how it's being handled. Thanks for the help again.