Here is how you can add/retrieve from session:

If you want to add an attribute to the session in your Action you can do so as follows
package webwork.blank.actions;

import webwork.action.ActionSupport; import webwork.action.ServletActionContext;

public class MyAction extends ActionSupport { public String doExecute() throws Exception { //example: add something to the session. String name = "Andre Mermegas"; ActionContext.getSession().put("name",name); return SUCCESS; } }

Now to access this or any session attribute from the view, in this case a JSP
<%@ taglib uri="webwork" prefix="ww" %>
<html>
<ww:property value="@name" />
</html>

You can also perform methods on the attributes if they have them
<%@ taglib uri="webwork" prefix="ww" %>
<html>
<ww:property value="@name/toUpperCase" />
</html>