Issue with the property attribute of logic:iterate
posted 18 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Hi Ranchers,
I have a issue with concatinating the string for setting the value of property attribute of Logic:iterate tag.
currently the scene is like this.
Manager is a bean with its property as
List getListParam(String s)
So the below mentioned code works fine
<logic:iterate name="Manager" property="listParam(conditions)" id="filterInfoBean">
Also note that this code is running inside a loop
But now the issue is that the parameter conditions for listParam is not commingas constant
I want to send different paramteters depending upon the iterations
like conditions161 or conditions162 or conditions163
<logic:iterate name="tileManager" property="listParam(filters"+fieldId+")" id="filterInfoBean">
but it fails saying Unterminated <logic:iterate tag'
Please help me resolve it
Nishant
So i tried something like this
I have a issue with concatinating the string for setting the value of property attribute of Logic:iterate tag.
currently the scene is like this.
Manager is a bean with its property as
List getListParam(String s)
So the below mentioned code works fine
<logic:iterate name="Manager" property="listParam(conditions)" id="filterInfoBean">
Also note that this code is running inside a loop
But now the issue is that the parameter conditions for listParam is not commingas constant
I want to send different paramteters depending upon the iterations
like conditions161 or conditions162 or conditions163
<logic:iterate name="tileManager" property="listParam(filters"+fieldId+")" id="filterInfoBean">
but it fails saying Unterminated <logic:iterate tag'
Please help me resolve it
Nishant
So i tried something like this
posted 18 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Please provide code snippet for better understanding...
Bob Mathews
Ranch Hand
Posts: 43
posted 18 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Ok i have added the code snippet i think it needs to be writtern in bold
I have a issue with concatinating the string for setting the value of property attribute of Logic:iterate tag.
currently the scene is like this.
Manager is a bean with its property as
List getListParam(String s)So the below mentioned code works fine
<logic:iterate name="Manager" property="listParam(conditions)" id="filterInfoBean">
Also note that this code is running inside a loop
But now the issue is that the parameter conditions for listParam is not commingas constant
I want to send different paramteters depending upon the iterations
like conditions161 or conditions162 or conditions163
<logic:iterate name="tileManager" property="listParam(filters"+fieldId+")" id="filterInfoBean">
but it fails saying Unterminated <logic:iterate tag'
Please help me resolve it
Nishant
I have a issue with concatinating the string for setting the value of property attribute of Logic:iterate tag.
currently the scene is like this.
Manager is a bean with its property as
List getListParam(String s)So the below mentioned code works fine
<logic:iterate name="Manager" property="listParam(conditions)" id="filterInfoBean">
Also note that this code is running inside a loop
But now the issue is that the parameter conditions for listParam is not commingas constant
I want to send different paramteters depending upon the iterations
like conditions161 or conditions162 or conditions163
<logic:iterate name="tileManager" property="listParam(filters"+fieldId+")" id="filterInfoBean">
but it fails saying Unterminated <logic:iterate tag'
Please help me resolve it
Nishant
posted 18 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
If you want to use a variable, you must use either a scriptlet or EL. If you use EL, you must use the EL version of the tags, which means changing the URI used in your taglib definition. Below is a sample scriptlet solution:
<logic:iterate name="tileManager" property='<%="listParam(filters"+fieldId+")" %>' id="filterInfoBean">
The above will only work if fieldId has been defined as a java variable earlier in the JSP.
<logic:iterate name="tileManager" property='<%="listParam(filters"+fieldId+")" %>' id="filterInfoBean">
The above will only work if fieldId has been defined as a java variable earlier in the JSP.
Merrill
Consultant, Sima Solutions
| If tomatoes are a fruit, then ketchup must be a jam. Taste this tiny ad: Paul Wheaton's 16th Kickstarter: Gardening playing cards for gardeners and homesteaders https://coderanch.com/t/889615/Paul-Wheaton-Kickstarter-Gardening-playing |









