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.

If you are getting compiler errors, please copy and paste the FULL text here.
Don't edit them.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.