Not directly. If you're using JSP 2.0, you can create an EL function to proxy access to java.util.Random:
<%@ taglib prefix="rand" uri="http://dotech.com/random" %> <jsp:useBean id="random" class="java.util.Random"/> ${rand:nextInt(random, 10)} ${rand:nextDouble(random)} Another approach would be to create a JavaBean to proxy access to Random: <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> <jsp:useBean id="random" class="com.dotech.RandomBean"/> <c:set target="${random}" property="maxInt" value="10"/> <c:out value="${random.nextInt}"/> Or, since this is an MVC framework list, you could generate the random number in a Filter or an Action and set it as a request attribute so that it's available to the JSP. Quoting Axel Seinsche <[EMAIL PROTECTED]>: > Hi all, > > I know this is not a JSTL list, but maybe someone can tell me, if there > is a possibilty to get a random number with a JSTL tag. Best would be to > have min and a max value. If this doesn't exist, I think about wrtiting > such a tag for me. But I don't have to do this, if it still exists. ;-) > > Thanks, > > Axel -- Kris Schneider <mailto:[EMAIL PROTECTED]> D.O.Tech <http://www.dotech.com/> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]