Inside ActionClass
String actionName = (String)ActionContext.getContext().get(ActionContext.ACTION_NAME);
will give you a "test".
HttpServletRequest request = ServletActionContext.getRequest();
- your servlet request, from where you can get all the parameters. Anyway, take a look at ActionContext.getContext () . A lot of things you can get from there. Hope this helps.
source
share