Hi, The lines below should work for you: pt=<WW:property value="@current_project/title"/> pt=<WW:property value="@current_project"/>
I just made a quick test to verify it and it works on my WW1.3 CVS version anyway. I invoke the action and the actions.xml maps it to the JSP page. See the included code below. Cheers, Dick Zetterberg [EMAIL PROTECTED] **** Java class **** package se.transitor; import webwork.action.Action; import webwork.action.ActionContext; import org.apache.log4j.Logger; public class SessionTest implements webwork.action.Action { protected static Logger log = Logger.getLogger(SessionTest.class); public String execute() throws Exception { log.error("SessionTest executing"); Project project = new Project(); ActionContext.getSession().put("current_project", project); return SUCCESS; } public class Project { public String getTitle() { return "ProjectTitle"; } } } **** JSP file **** <%@ taglib uri="webwork" prefix="ww" %> Session project is: <ww:property value="@current_project"/><br> Session project title is: <ww:property value="@current_project/title"/><br> **** actions.xml **** <action name="se.transitor.SessionTest"> <view name="success">test/sessiontest.jsp</view> </action> ----- Original Message ----- From: "Porter, Mike" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 07, 2003 7:51 PM Subject: [OS-webwork] ww1.3 - Session Scope Property > Hi, > > I am having troubles getting the jsp property tag to find a variable that I have put > into Session scope via a Action class that I wrote. > >From reading the Wiki on the property tag I understand that I should be able to use > >the @ in my property to look in session scope for a variable. > My action looks like this: > ... > ActionContext.getSession().put("current_project", project); > ... > And my jsp fragment looks like this: > ... > pt=<WW:property value="@project/title"/> > pt=<WW:property value="@title"/> > pt=<WW:property value="@current_project/title"/> > pt=<WW:property value="@current_project"/> > pt=<WW:property value="title"/> > ... > > And a Project class has a getTitle method. > ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork