01: // Copyright (c) 2003-2007, Jodd Team (jodd.sf.net). All Rights Reserved.
02:
03: package madvoc;
04:
05: import jodd.madvoc.config.MadvocConfig;
06: import jodd.madvoc.WebApplication;
07: import jodd.madvoc.ActionConfig;
08:
09: /**
10: * Simple manual configuration.
11: */
12: public class SimpleConfig implements MadvocConfig {
13:
14: public void configure(WebApplication webapp) {
15: System.out.println(">SimpleConfig.configure");
16:
17: // manual action configuration
18: webapp.register(new ActionConfig("/incognito.html",
19: IncognitoRequest.class, "hello", null));
20:
21: // result aliasing
22: webapp.setResultAlias("hello.all", "hi-all");
23: }
24: }
|