THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block |
---|
public void init() { super.init(); getRootRequestMapperAsCompound().add( new PackageMapperMountMapper("/mount/point", PageA new PackageMapper( PackageName.forClass(Page3.class)))); } |
Assuming that PageA package is "com.example.pages" a request to "/mount/point/PageB" will use com.example.pages.PageB if it exists and is an instance of Page.
...