AnsweredAssumed Answered

cannot grab mimetype in freemarker

Question asked by dooley on Jul 10, 2008
Hey,

I have a webscript and in the freemarker response, I query for a piece of content that exists within my web project.  However, I'm having an issue with grabbing the mimetype off of the piece of content that I am querying for.

Here is my query:
<#assign doc = store.luceneSearch("@cm\\:title:\"" + docName + "\"")>

I know this query is returning the document I want because if I call
${doc.properties["cm:title"]}
, it correctly displays the documents name.

When I call
${doc.properties.content.mimetype}
I get an error saying that doc.properties.content is undefined.  I get a similar error when I call
${doc.mimetype}
as well.

Does anybody know what I am doing wrong???

Thanks,

Dooley

Outcomes