Hi,
I am trying to use a nested logic tag and I get an error: equal symbol
expected
Any help would be appreciated.
Thanks,
Joe
Here is the code:
logic:greaterThan name=article property=parentArticleId value=0
logic:notEqual name=article property=parentArticleId
value=bean:write
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
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
attribute and compate the value to the value of the
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
@struts.apache.org
Sent: Fri, 3 Mar 2006 12:21:18 -0800
Subject: Logic Tag Question
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
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
: Logic Tag Question
OK, I am now able to get the iterate tag to work, but the comparison is
still not working. I have this now:
logic:iterate id=tz name=timezones
logic:equal name=accountProfileForm property=timeZone
value=${tz}
bean:write name=tz property=label
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
Everyone,
I have two modules defined (/ /app). I want to use the logic tag
(either redirect or forward) to take me to the URL /myApp/index.htm
when I enter in just /myApp/. I have defined an action within the /
module Struts Config File that is called /index and forwards to a
Tiles
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
I have a collection of cards. and I want to create a table fo thos
cards, but if I get to a card where foo=bar, then I want to paint that
row as a form with updateable fields and 1 submit for just that row.
How would I do this please?
--
Thanks
Mick Knutson
(925) 951-4126
HP Consulting Services
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
21 matches
Mail list logo