user1277546
user1277546

Reputation: 8772

Struts2 interceptor - how to read action parameters

I have an ID request parameter in my action class, when it is intercepted how can the interceptor read this ID parameter for checking in order to authenticate a user.

Upvotes: 0

Views: 1753

Answers (1)

Aleksandr M
Aleksandr M

Reputation: 24396

Use ActionContext for getting parameters map:

Map<String, Object> parameters = ActionContext.getContext().getParameters();

Upvotes: 1

Related Questions