package cookie;
import javax.servlet.http.Cookie;
public @interface getNextCookieValue {
cookie = new Cookie("mycookie",""+getNextCookieValue());)
}
please help me I don't know how can I create annotation of the structure in java servlets.
The code gives an error as:
Multiple markers at this line
- Syntax error on token "cookie", VariableDeclaratorId expected after
this token
- Syntax error on token ")", delete this token
I couldn't find how can I realize this.