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
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
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
@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
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
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:
>
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
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
8 matches
Mail list logo