简体   繁体   English

Struts2-在动作的execute方法内访问请求对象

[英]Struts2 - Access request object inside action's execute method

Is it possible to access the request object inside an struts2 action's execute() method? 是否可以在struts2动作的execute()方法内访问request对象?

My requirement is to get some parameter value from the request scope which is being sent by some third party site, using URL redirection. 我的要求是使用URL重定向从某个第三方站点发送的请求范围中获取一些参数值。

RequestAware接口就是您想要的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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