Hi
Thanx now it works,
but i have another issue,
what i am trying is this
<html:select property="selectedView" size="5" >
<c:forEach var="viewName"
items="${viewlinephase.map.viewNames}">
<html:option value="${viewName.l1082CODE}">
<c:out value="${viewName.nameDesc}"/>
</html:option>
</c:forEach>
</html:select>
viewName.nameDescis workig fine, and value is getting
substituated, but viewName.l1082CODE is not getting
substituted
my bean is as follows
public class PL1082Bean
{
private String l082CODE;
private String l082DESC;
public String getL082CODE()
{
return l082CODE;
}
public void setL082CODE(String l082code)
{
l082CODE = l082code;
}
public String getL082DESC()
{
return l082DESC;
}
public void setL082DESC(String l082desc)
{
l082DESC = l082desc;
}
public String getNameDesc()
{
return l082CODE + " " + l082DESC;
}
Ashish
--- Rahul Akolkar <[EMAIL PROTECTED]> wrote:
> On 1/11/06, Ashish Kulkarni
> <[EMAIL PROTECTED]> wrote:
> > Hi
> > I have defined a DynaValidatorForm in
> > struts-config.xml file like this
> > <form-bean name="viewlinephase"
> > type="org.apache.struts.action.DynaActionForm">
> > <form-property name="viewNames"
> > type="java.util.Collection" />
> > </form-bean>
> >
> > In My jsp i have defined a Action class which uses
> > this bean
> > I want to iterate through all viewNames in my jsp
> > using <c:forEach..> tag
> > How do i go it
> > I tried
> > <c:forEach var="viewName"
> > items="${viewlinephase.viewNames}">
> <snip/>
>
> ${viewlinephase.map.viewNames}
>
> You'll be able to CGLib enhance if you wish in
> 1.3.x.
>
> -Rahul
>
>
> > <html:option value="${viewName.l082CODE}">
> > <c:out value="${viewName.nameDesc}"/>
> > </html:option>
> > </c:forEach>
> >
> > But i get Unable to find a value for "viewNames"
> in
> > object of class
> > "org.apache.struts.action.DynaActionForm" using
> > operator "."
> >
> > How do i do it
> >
> > Ashish
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]