You can get session on an ActionSupport based Action POJO class as follows:
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
public class searchAction extends ActionSupport
{
public String execute() throws Exception {
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
public class searchAction extends ActionSupport
{
public String execute() throws Exception {
ActionContext ctx= ActionContext.getContext();
   Map m=ctx.getSession();
   m.put("name", "value");}} 
rgreger
ReplyDelete