It could be that the .tld isn't included in random.jar...

Have you tried this instead (Assuming the .tld is in the directory of
course):

<cfimport taglib="/WEB-INF/lib/random.tld" prefix="myrand">

<myrand:number id="randPass" range="000000-999999" algorithm="SHA1PRNG"
provider="SUN" /> 
<cfset myPassword = randPass.random> 
<cfoutput>
  Your password is #myPassword#<br>
</cfoutput>

Spike

> -----Original Message-----
> From: Justin MacCarthy [mailto:[EMAIL PROTECTED]] 
> Sent: 07 October 2002 13:56
> To: [EMAIL PROTECTED]
> Subject: [ cf-dev ] cfimport & taglibs 
> 
> 
> 
> Has anyone got this example working???
> 
> <cfimport taglib="/WEB-INF/lib/random.jar" prefix="myrand">
> 
> <myrand:number id="randPass" range="000000-999999" 
> algorithm="SHA1PRNG" provider="SUN" /> <cfset myPassword = 
> randPass.random> <cfoutput>
>   Your password is #myPassword#<br>
> </cfoutput>
> 
> 
> I'm getting "Element RANDOM is undefined in randPass.." I'm 
> using the lastest taglibs from jakarta.
> 
> Weird..
> 
> TIA @J
> 
> 
> -- 
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: 
> [EMAIL PROTECTED] For human help, e-mail: 
> [EMAIL PROTECTED]
> 
> 



-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to