RE: access to bean property in struts2

2007-11-16 Thread Hernandez, David
Sorry, if you want to iterate through the contracts, let's say they're members of User (name contracts) in jsp: -Original Message- From: slideharmony [mailto:[EMAIL PROTECTED] Sent: Friday, November 16, 2007 10:53 AM To: user@struts.apache.org Subject: Re: acce

RE: access to bean property in struts2

2007-11-16 Thread Dave Newton
ge- > From: slideharmony [mailto:[EMAIL PROTECTED] > Sent: Friday, November 16, 2007 10:53 AM > To: user@struts.apache.org > Subject: Re: access to bean property in struts2 > > > I have another question: > it is right in struts2 to put beans in session? > Assuming to hav

Re: access to bean property in struts2

2007-11-16 Thread slideharmony
I have another question: it is right in struts2 to put beans in session? Assuming to have an action that retrieve a bean User from the database; the user have a set of contracts. I want to iterate this set in a jsp page, which ways have I to do that? I have to put the bean User in session, or is t

RE: access to bean property in struts2

2007-11-16 Thread Hernandez, David
@struts.apache.org Subject: Re: access to bean property in struts2 I have another question: it is right in struts2 to put beans in session? Assuming to have an action that retrieve a bean User from the database; the user have a set of contracts. I want to iterate this set in a jsp page, which ways

Re: access to bean property in struts2

2007-11-16 Thread Thilo Ettelt
You can expose a property or bean to the JSP Expression language (${myPropertyOrBean}) by using s:set taglib. - Thilo slideharmony wrote: ok, but I read somewhere that I can do that without setting a property User in my action, using the action stack, or something like this, I believed that l

RE: access to bean property in struts2

2007-11-16 Thread slideharmony
ok, but I read somewhere that I can do that without setting a property User in my action, using the action stack, or something like this, I believed that last action I have used should be available, or not? Hernandez, David wrote: > > > Set the Bean as a member of the Action class and use: >

RE: access to bean property in struts2

2007-11-15 Thread Hernandez, David
Set the Bean as a member of the Action class and use: -Original Message- From: slideharmony [mailto:[EMAIL PROTECTED] Sent: Thursday, November 15, 2007 11:28 AM To: user@struts.apache.org Subject: access to bean property in struts2 Hello, how can I access a bean properties from a jsp

Re: access to bean property in struts2

2007-11-15 Thread Dave Newton
In your action: public User getUser() { return this.user; } In your JSP: Through a request wrapper you can also use JSP 2.0 EL if you're running a JSP 2 container: ${user.fullName} if you don't mind mixing paradigms. d. --- slideharmony <[EMAIL PROTECTED]> wrote: > > Hello, > how can I a