@Documented @Retention(value=RUNTIME) @Target(value=PARAMETER) public @interface CookieParam
Like JSR-311, @CookieParam allows you to annotate an action method parameter to specify that its value should be loaded from the cookie parameters.
public WOActionResults testAction(@CookieParam("person") Person personParam) { ... }
This will automatically pass the value of the "person" cookie object (person=10) into your action method as the "personParam" parameter.
public abstract String value
Copyright © 2002 – 2020 Project Wonder.