[some string 1, some string 2, some string 3]
Welcome ${pageContext.request.userPrincipal.name}
Simply check if the user is logged in via some filter and redirect them back to where they came from.
Mohamed Sanaulla wrote:You need to have a look at ObjectId class from the MongoDB documentation.
Recently I wrote an article which on a blog- Using Morphia- Java Library for MongoDB. Here I compared using MongoDB driver and Morphia API.
PS: I was reluctant to share this link in my first reply tending it to be Blatant Advertisement. But I have code samples there which show you how to retrieve the "id" field from Mongo's BSON
{ "_id" : { "$oid" : "4fc68190a09ef7490a0b3b40"} , "firstName" : "Some First Name" , "lastName" : "Some Last Name"}