I am sorry. Let me correct my question. I am indeed able to do it for one class using :
> mountBookmarkablePage("/home", Main.class); > But what I want to do is to export the entire package under /home. Thanks, Suraj. On Thu, Feb 17, 2011 at 12:45 AM, Suraj Chandran <chandransu...@gmail.com>wrote: > Hi > > I have a class Main.class(bookmarkable) and its associated Main.html in > package com.xyz > What I want is Main.html be able to be accessed as > www.xyz.com/home/Main.html > > I tried something like this: > > @Override > protected void init() { > super.init(); > this.mount("/homes/", > PackageName.forPackage(Main.class.getPackage())); > this.addComponentInstantiationListener(new > SpringComponentInjector(this)); > } > > But it doesen't seem to work. > Am I doing things right? > Thanks, > Suraj. >