The linked documentation is good. If you need more, I wrote a blog entry about this subject just 2 weeks ago.
http://digitaljoel.nerd-herders.com/2011/03/17/how-to-create-a-custom-taglib-containing-an-el-function-for-jsp/ <http://digitaljoel.nerd-herders.com/2011/03/17/how-to-create-a-custom-taglib-containing-an-el-function-for-jsp/> Joel On Sat, Apr 2, 2011 at 12:41 PM, Janne Jalkanen <janne.jalka...@ecyrd.com>wrote: > > You can create EL functions: > > http://download.oracle.com/javaee/5/tutorial/doc/bnahq.html#bnaiq > > /Janne > > On Apr 2, 2011, at 20:43 , Thomas Menke wrote: > > > 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 > > > > ------------------------------------------------------------------------------ > 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 >
------------------------------------------------------------------------------ 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