cancel
Showing results for 
Search instead for 
Did you mean: 

get space properties in custom JSP

dpatri
Champ in-the-making
Champ in-the-making
Hi,

I have customized browse.jsp if the space has a certain aspect applied. I have overriden the navigation in my web-custom-config.xml. This works perfectly (i.e when it goes to a space with the aspect applied it shows the custom browse.jsp, when it goes to a normal space, it uses the normal out-of-the-box browse.jsp).

In my custom browse.jsp I have several freemarker templates that I have placed. Within these freemarker templates I want to display certain space properties, but even when I try ${space.name} I get an error "'Expression space is undefined".

Could someone help?
1 REPLY 1

dpatri
Champ in-the-making
Champ in-the-making
I figured it out. When I called the freemarker template using the <r: template> tag I did not include  model="#{NavigationBean.templateModel}"

This passed the context and the space details are now available.