You can't nest taglibs.
Try using the el tags and using an expression in place of the
Nested bean:write taglib call.
-Original Message-
From: Russo, Joe [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 05, 2008 11:52 AM
To: user@struts.apache.org
Subject: logic tag question
Hi,
I
The issue is the bean tag inside the logic tag; that isn't valid JSP. You'll
need to use EL there via the EL tags or JSP 2.0 support, depending on your
container.
Dave
--- On Wed, 11/5/08, Russo, Joe [EMAIL PROTECTED] wrote:
From: Russo, Joe [EMAIL PROTECTED]
Subject: logic tag question
Thanks for your reply.
-Original Message-
From: Kawczynski, David [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 05, 2008 11:59 AM
To: Struts Users Mailing List
Subject: RE: logic tag question
You can't nest taglibs.
Try using the el tags and using an expression in place
Thanks for your reply.
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 05, 2008 12:03 PM
To: Struts Users Mailing List
Subject: Re: logic tag question
The issue is the bean tag inside the logic tag; that isn't valid JSP.
You'll need to use
the
accountProfile.getTimeZone() field. Any other ideas?
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper
Sent: Saturday, March 04, 2006 6:01 PM
To: user@struts.apache.org
Subject: Re: Logic Tag Question
Change ${tz}.value to ${tz.value}.
Kalcevich, Daniel
Mailing List
Subject: RE: Logic Tag Question
Laurie,
I changed the code to be:
logic:iterate id=tz name=timezones
logic:equal name=accountProfileForm property=timeZone
value=${tz.value}
bean:write name=tz property=label/
/logic:equal
/logic:iterate
Any it still
Mailing List
Subject: Re: Logic Tag Question
On 3/3/06, Kalcevich, Daniel [EMAIL PROTECTED] wrote:
bean:write name=tz property=label/
But the problem is that the value that I want to compare in the
logic:equal tag is really ${tz}.value. But how can I set the value to
the getValue() from the tz
On 3/3/06, Kalcevich, Daniel [EMAIL PROTECTED] wrote:
I have the following:
- An ArrayListLabelValueBean in the ServletContext called
timezones
- A Form Bean in the request scope called accountProfileForm
I want to be able to loop through the values in the timezones
If I am not mistaking you will use either the collection or the property
attribute but not both.
http://struts.apache.org/struts-taglib/tagreference-struts-logic.html#logic:iterate
For each iteration of the loop you should be able to compare the value of the
id property in you logic:equal tag to
12:52 PM
To: Struts Users Mailing List
Subject: Re: Logic Tag Question
If I am not mistaking you will use either the collection or the property
attribute but not both.
http://struts.apache.org/struts-taglib/tagreference-struts-logic.html#lo
gic:iterate
For each iteration of the loop you should
]
Sent: Friday, March 03, 2006 12:52 PM
To: Struts Users Mailing List
Subject: Re: Logic Tag Question
If I am not mistaking you will use either the collection or the property
attribute but not both.
http://struts.apache.org/struts-taglib/tagreference-struts-logic.html#lo
gic:iterate
How can I say that the value I want to check against if the getValue()
method from the tz variable?
-Original Message-
From: Michael Jouravlev [mailto:[EMAIL PROTECTED]
Sent: Friday, March 03, 2006 1:29 PM
To: Struts Users Mailing List
Subject: Re: Logic Tag Question
On 3/3/06, Kalcevich
I am not having luck here.
I have a collection of cards (Card class) that I am iterating through.
Then, I also have a form that has a cardValidatorForm (DynaForm).
cardForm.cardNumber is going to be equal to one of the card.cardNumber's
When I create the logic tag like you stated:
logic:equal
If you are using property on the logic:equal, you also have to supply the
name attribute. Define an id on the logic:iterate and use it as the
name on the logic:equal.
On 10/1/05, Mick Knutson [EMAIL PROTECTED] wrote:
I am not having luck here.
I have a collection of cards (Card class) that I
Sounds like you need some documentation... try this:
http://struts.apache.org/userGuide/struts-logic.html
This tells you how to use those logic:... and html:... and bean:... tag
libraries along
with a few others.
Basically the use of the logic:iterate... tag should identify the attribute
Will the following work?
html:form ...
logic:iterate...through collection
logic:equal property=foo value=bar
html:text ...display in form fields/
html:submit .../
/logic:equal
logic:notEqual property=foo value=bar
jsp:getProperty property=foo/
/logic:notEqual
/logic:iterate
Thanks so much!
Murray Collingwood wrote:
Will the following work?
html:form ...
logic:iterate...through collection
logic:equal property=foo value=bar
html:text ...display in form fields/
html:submit .../
/logic:equal
logic:notEqual property=foo value=bar
jsp:getProperty
17 matches
Mail list logo