logic tag question

2008-11-05 Thread Russo, Joe
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

RE: logic tag question

2008-11-05 Thread Kawczynski, David
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

Re: logic tag question

2008-11-05 Thread Dave Newton
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

RE: logic tag question

2008-11-05 Thread Russo, Joe
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

RE: logic tag question

2008-11-05 Thread Russo, Joe
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

RE: Logic Tag Question

2006-03-06 Thread Kalcevich, Daniel
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

RE: Logic Tag Question

2006-03-06 Thread Shasirekha Engala
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

Re: Logic Tag Question

2006-03-04 Thread Laurie Harper
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

Logic Tag Question

2006-03-03 Thread Kalcevich, Daniel
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

Re: Logic Tag Question

2006-03-03 Thread Wendy Smoak
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

Re: Logic Tag Question

2006-03-03 Thread [EMAIL PROTECTED]
@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

RE: Logic Tag Question

2006-03-03 Thread Kalcevich, Daniel
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

RE: Logic Tag Question

2006-03-03 Thread [EMAIL PROTECTED]
: 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

RE: Logic Tag Question

2006-03-03 Thread Kalcevich, Daniel
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

Logic Tag Question

2006-02-10 Thread Kalcevich, Daniel
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

Re: logic tag question about identifying a specific item in acollection

2005-10-01 Thread Mick Knutson
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

Re: logic tag question about identifying a specific item in acollection

2005-10-01 Thread Kishore Senji
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

Re: logic tag question about identifying a specific item in acollection

2005-10-01 Thread Murray Collingwood
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

logic tag question about identifying a specific item in a collection

2005-09-29 Thread Mick Knutson
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

Re: logic tag question about identifying a specific item in a collection

2005-09-29 Thread Murray Collingwood
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

Re: logic tag question about identifying a specific item in acollection

2005-09-29 Thread Mick Knutson
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