You could have two onActivate() methods, maybe something like:
public class MyPage
{
@Persist private String _b;
@Inject private ComponentResources _resources;
Object onActivate(String a, String b)
{
_b = b;
return _resources.createPageLink(_resources.getPageName(), false, a);
}
I need an http forward like this:
http://example.org/mypage/a/b --> http://example.org/mypage/a
The last two path elements are activation context items. I'm chopping
off "/b" to shorten the URL to a form that is desirable for
bookmarking. I could persist the "/b" as a persistent page property,