How do I go about making my HomePage accept index parameters?  I want
a home page that will accept URLs like:
localhost:8080/us/ca/sacramento

Instead of having a mount point first, for example /home:
localhost:8080/home/us/ca/sacramento

I've tried this in my app:

getHomePage() {
   return HomePage.class;
}
init() {
   mount(new IndexedParamUrlCodingStrategy("/", HomePage.class));
}

This returns in a 404 error for the home page (localhost:8080/).  I
also tried with "" instead of "/" as the mount point, but the same
problem.

If I use this with the /home mount point, everything works perfectly:
mount(new IndexedParamUrlCodingStrategy("/home", HomePage.class));

FYI... I get the PageParameters in HomePage like this (which is working fine);

                setCountry(pageParams.getString("0",null));
                setState(pageParams.getString("1",null));
                setCity(pageParams.getString("2",null));

Any suggestions?

Thanks,
Tauren

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to