There a several different ways to calculate days, based on the definition of "day"; e.g. should 23:59 - 00:01 count as a day? Nevertheless, once you decide on those rules, you can write your own custom tag (I don't believe JSTL has such a function).
<my:days start="<%= startDate %>" end="<%= endDate %>" /> If you're interested in writing your own tags, Sun has a good tutorial here: http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPTags.html > -----Original Message----- > From: Just Fun 4 You [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 05, 2004 10:38 AM > To: [EMAIL PROTECTED] > Subject: how to use methods with parameters > Sensitivity: Personal > > > Hi, > > is it possible to use JSTL for an expression like > > <%=calculateDays(startDate, endDate) %> ??? > > > probably not, but I am too new to JSTL to figure it out by > myself. Could someone advise me? > > thanks. > Dirk > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > This message and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please delete the email and any files transmitted with it entirely from your computer. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]