Thanks Zoran for your awnser. I tried to check the sources of the
taglib. But I am not such a geek :-( to realize what exactly is
happening where in the code.
I saw that I sould get a session object, but how can I access the
repository to read values?
HierarchyManager hr = MgnlContext.getHierarchyManager(repository);
Workspace ws = hr.getWorkspace();
Session session = ws.getSession();
Didn't anyone of you write a template in form of a servlet instead of a
jsp and could post a code example?
Thanks in advance,
Bernd
Zoran Balkic schrieb:
Bernd Brenner wrote:
Hello all,
for one page, I would like to use a servlet template instead of a jsp
template.
In the jsp template I have e.g. "<cms:out nodeDataName="name"/>" to
print out the data; what would be the equivalent code in the servlet?
How can I access the data nodes from a servlet?
Thanks in advance,
Bernd
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------
Hello!
Go and check the source for the cmsu taglib and you will find the
exact code.
package info.magnolia.cms.taglibs.Out
Zoran
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------