thanks bunch for the reply!
I am still confused.
so If I want to have the page, should I code below?
Page myBook = element(*,cq:PageContent)[@jcr:title="myBook"];
it doesn't work.
Please guid me through.
Something on top of my head ....
Iterator<Resource> iter = resourceResolver.findResources(query,"xpath");
curRes = iter.next();
Page eachPage = pageManager.getContainingPage(curRes);
Then list all children of this page http://dev.day.com/docs/en/cq/current/javadoc/com/day/cq/wcm/api/Page.html
//Pagemanager is implicit object in JSP