score:0

Accepted answer

The answer to this is so simple, I can't believe I didn't have this idea earlier...

I just had to add the full package name in the first line of the view...

@(list: List[com.mongodb.casbah.Imports.DBObject])

..and then I don't even have to import the package. I can now display each attribute value of a document separately with e.g. @doc.get("_id").

Should anybody be interested, here's the full view file.


Related Query

More Query from same tag