Thanx a lot. This works!
Grish wrote:
>
>
> value="%{#attr.myPage.getProperty('meta.currentNav')}" />
>
--
View this message in context:
http://www.nabble.com/-S2--Access-a-SiteMesh-Object-in-a-Struts-tag-tp13272172p24800510.html
Sent from the Struts - User mailing list archive at Nabble.c
After going through the OGNL documents and trial and error I was able to get
the properties from the page object from sitemesh using the following code:
Hope this is of some use to someone out there :)
Grish wrote:
>
> So I tried the following:
>
>
> <% String current = myPage.getProperty
So I tried the following:
<% String current = myPage.getProperty("meta.current"); %>
but this displays blank. What I want to do is get the property from the Page
object of sitemesh and make it accessible to my s2 tags. I was reading about
OGNL and the syntax but i can't seem to get that prope
3 matches
Mail list logo