Random tag library - dynamic range

"Eran Kalmanson" <[email protected]>
Newsgroups gmane.comp.jakarta.taglibs.user
Message-ID <005c01c7c481$46fe3a80$0801a8c0@yaniv22c2b2296>
Howdy,

 

I've been having difficulties with the random taglib. I'm interested in
getting a random number using a dynamic range. However I can't find a way to
do that.

 

I've tried

 

<c:set var="top" value="43" />

 

<rand:number id="randNumber" range="1-${top}" />

 

Didn't work. Syntax error.

 

I've also tried

 

<c:set var="range" value="1-43" />

 

<rand:number id="randNumber" range="${range}" />

 

Didn't work either. Couldn't find anything relevant on the web. Would love
some help with that.

 

Thanks,

Eran Kalmanson
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.