<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Corrado,<br>
<br>
try this:<br>
<br>
CmsProperty titleProp = cmsObject.readPropertyObject (<b>cmsAction.getRequestContext()</b>.getUri(),
"Title", false);<br>
<br>
Best regards<br>
Antonio Cordeddu<br>
<br>
<br>
On 09/04/2015 17:54, Paoletti Corrado wrote:<br>
</div>
<blockquote
cite="mid:93F7264C41E13E4CB639B1C7415FB73F118D4329@mi2exmbx02"
type="cite">
<pre wrap="">Hi all,
in my template I'd like to read a custom property.
Reading article:
<a class="moz-txt-link-freetext" href="http://www.opencms-wiki.org/wiki/Read_a_property_of_an_arbitrary_CmsResource">http://www.opencms-wiki.org/wiki/Read_a_property_of_an_arbitrary_CmsResource</a>
I copied and pasted code suggested but when I click over a html based on the template I get the error:
Unable to compile class for JSP:
An error occurred at line: 15 in the jsp file: [my jsp file]
requestContext cannot be resolved
I don't know what i'm doing wrong.
Thank you.
_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
<a class="moz-txt-link-freetext" href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">
_______________________________________________
Coranto informatica di Antonio Cordeddu
Via Torricelli, 9 09047 Selargius (CA) - Italy
<a class="moz-txt-link-abbreviated" href="mailto:antoniocordeddu@coranto.it">antoniocordeddu@coranto.it</a>
<a class="moz-txt-link-freetext" href="http://www.coranto.it">http://www.coranto.it</a>
_______________________________________________</pre>
</body>
</html>