简体   繁体   中英

Struts2 interceptor - how to read action parameters

我的动作类中有一个ID请求参数,当拦截该请求参数时,拦截器如何读取此ID参数进行检查以对用户进行身份验证。

使用ActionContext获取参数映射:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM