I don't know of any easy tidy way, unless you're using Resin, which allows you to call functions that don't match bean naming conventions and pass parameters. It's always nice to have standards to protect us from ourselves. :)
There is a more tidy way - define a function in a .tld. Since it has to be static, you may end up writing a static class just to call the function. http://www.javaworld.com/javaworld/jw-05-2003/jw-0523-calltag-p2.html On Tue, 2004-08-17 at 04:46, Tobias Eriksson wrote: > Hi > I'm trying to call a method in a BEAN that returns an array of objects > that I need to enumerate on my page. But I don't want to access a > property with EL, like this e.g. ${mybean.names} ) as I need to provide > an argument to the method. I need to say how many names I would like, so > the only thing I could come up with was this; > > <c:set var="names" value="<%= mybean.getNames( Integer.parseInt( > request.getParameter("total") ) ) %>" /> > > Now this looks a bit cumbersome and I was thinking if anyone knew of a > better way of doing this. For example > ${ mybean.getNames(request.getParameter("total") ) } > would have been nicer and tidier. > > Regards > Tobias > > -----Original Message----- > From: Andy Eastham [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 17, 2004 10:11 > To: 'Tomcat Users List'; [EMAIL PROTECTED] > Subject: RE: understanding web.xml > > Also look at the sample chapter at http://www.moreservlets.com/ > > Andy > > > -----Original Message----- > > From: Thilo Krawietz [mailto:[EMAIL PROTECTED] > > Sent: 17 August 2004 08:07 > > To: Tomcat Users List > > Subject: Re: understanding web.xml > > > > Hi Tobias, > > > > in Suns official Servlet specification all elements of web.xml are > > explained widely, so i would suggest, that you study this one. You can > > get it here: > > > > http://java.sun.com/products/servlet/download.html > > > > Hope this helps & regards, > > > > Thilo > > > > > > Tobias Eriksson wrote: > > > > >Hi > > > I have been searching the web some for information about how to > > >configure / setup; web.xml, but haven't really found anything. I > thought > > >there would be something in the TOMCAT documentation, perhaps I > wasn't > > >to thorough when I browsed through it. Does anyone have a link to > some > > >tutorial or article that explains the web.xml? > > > > > >Regards > > > Tobias > > > > > > > > > > > >--------------------------------------------------------------------- > > >To unsubscribe, e-mail: [EMAIL PROTECTED] > > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
