struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From VenkatBabu <bs_ram...@yahoo.co.in>
Subject How to pass dynamic value to the logic:equal tag?
Date Fri, 06 Jun 2008 16:26:04 GMT

I am new to this forum...forgive me if the question that i am going to raise
is already present. I dont have time to go through all the messages which
have been raised already.

The problem is: 
I have <logic:iterate id="ID1" name="formbeanname" property="VectorInBean"
indexid="index">
<logic:equal name="ID1" property="index" value="Dynamic Value from the
bean">

logic:equal tag's value attribute shoud get populated by a value from the
bean(i am storing the size of the vector in bean) which is used in the
logic:iterate. I dont want to use scriptlets.

Actually the problem is the Vector in the bean has list of strings which
needs to be shown in the JSP one by one sepeared by "commas(,)" and we need
to add "and" before the last string from the vector. So i need to check it
dynamically whether the vector is reached the last but one.

I need to solve this issue as soon as possible. Any help would be very
grateful.





-- 
View this message in context: http://www.nabble.com/How-to-pass-dynamic-value-to-the-logic%3Aequal-tag--tp17696332p17696332.html
Sent from the Struts - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message