Hi @ll,

in one of my JSP files I want to do somthing that looks like this 
(simplified):

<stripes:select multiple="multiple" name="item.scoringCategories">
   <c:forEach items="${actionBean.someProperty}" var="p">
     <option value="${p.id}" <c:if 
test="actionBean.isSelected(p)">selected="selected</c:if>>${fn:escapeXml(p.name)}</option>
   </c:forEach>
</stripes:select>

As you can see I am trying to call the isSelected method which is as I 
know (and as far as error messages and google tell me) not possible in 
EL. But how to deal with this then? I guess that it is not such a seldom 
requirement to call methods in the way I am trying to, is it? Do I 
really have to create my own tag library for anything like that? Or is 
there something "better"?

Thanks,

Thomas

------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to