class FormBean() {

  private String xxx;

 public String getXXX() {
  return this.xxx;
}

public void setXXX(String xxx) {
 this.xxx = xxx;
}

}


session.setAttribute("formbean",new FormBean().setXXX("yyyy"));
FormBean oFormeBean = (FormBean)session.getAttribute("formbean");
String xxx = oFormeBean.getXXX();

From: "Andrew Martin" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <user@struts.apache.org>
To: "Struts Users Mailing List" <user@struts.apache.org>
Subject: bean:define
Date: Thu, 8 Feb 2007 09:04:05 +0100

I am having problems defining a bean with a Session Object value.
I want to retrieve the Object within the JSP and display navigation depending on the values within the session

Any ideas?

I can only get it working when I check directly in JSP for the the session within the logic:present tag. I would prefer to place the value in a bean and use the properties of the bean.

Andrew

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
Get an advanced look at the new version of Windows Live Messenger. http://get.live.com/messenger/overview


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to