i think the sample below is the better one, because i have to use the
variable only in my scriptlet. so it is not nessesarry to add the
variable to the request.
thx a lot for the fast resolution. now i have a ambient weekend ;)
so long
ingo
Moskos, Jay wrote:
Try
String phone =
((Resource.getLocalContentNode(request)).getNodeData("phone")).getString
();
Cheers,
Jay Moskos
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED]
Sent: Friday, February 03, 2006 10:07 AM
To: [email protected]
Subject: [magnolia-user] getting content of nodes
hi,
i think i've got a little missunderstandig:
<cms:out nodeDataName="Phone" /> prints the content of Phone. so far so
good. but how i can access the same content in a scriplet?
i try the code below, but it doesn't work. why?
Content currentPage = Resource.getActivePage(request);
String email = currentPage.getNodeData("Phone").getString();
thx for help
so long
ingo
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------