For some strange reason you can have a dynamic value there, MM confirms this in one of 
their articles.
It needs to be a relative constant..

Taco Fleur
07 3535 5072

Tell me and I will forget
Show me and I will remember
Teach me and I will learn


-----Original Message-----
From: Collins, Steve [mailto:[EMAIL PROTECTED]
Sent: Friday, 2 April 2004 12:39 PM
To: CFAussie Mailing List
Subject: [cfaussie] Cfimport question


I'm setting up a new application, and want to cfimport a custom tag library thus:

<!--- import visuals custom tag library --->
<cfset strTagPath="/includes/#application.SNLCNS#/customtags/visuals/">  
<cfimport taglib="#strTagPath#" prefix="layout" />

<layout:renderpage>
#request.content#
</layout:renderpage>

So, application.SNLCNS is a dynamically set path name, which gets included in the 
value strTagPath, which is then used as the taglib value in the cfimport.  Apparently 
this isn't allowed, as I get the following:

Message This expression must have a constant value. 
Detail The CFML compiler was processing:
        * a cfimport tag beginning on line 19, column 2.

I can't imagine why this should be the case.  Surely any number of applications have 
dynamic tag library locations like this.  Any views or ideas.  I'm sort of resigned to 
setting this non-dynamically, but that would be disappointing.

Steve
--
Stephen Collins
Web Development Section
eBusiness Division
__________________________________________________
Department of Industry, Tourism and Resources 
Level 12, 20 Allara Street, Canberra City ACT 2600
GPO Box 9839, Canberra ACT 2601

E [EMAIL PROTECTED]
P +61 2 62137193
C +61 410 680722
F +61 2 62136227


**********************************************************************
The information contained in this e-mail, and any attachments to it, is
intended for the use of the addressee and is confidential. If you are not the intended 
recipient you must not use, disclose, read, forward, copy or retain any of the 
information. If you have received this e-mail in
error, please delete it and notify the sender by return e-mail or telephone.
The Commonwealth does not warrant that any attachments are free from viruses or any 
other defects. You assume all liability for any loss, damage or other consequences 
which may arise from opening or using the attachments.
***********************************************************************************

bv}rmzyqRzrSry
svjvyj
(¹ªÞrêëz{eÊ˱Êâmçm¡ÇÚË"y«­Èb½éV«r¯yÊ&N‹§²æìr¸›zÇu¦åjy™¨¥¶‰^j÷œ}«¬²'·ë®–+-±Öš‰Üf®1pÔÛM8øÆ®‰žv&ƒzð¨œ"höœù,ìËkjXš†Ûiÿü0Âl]¹Ê&ÿí¸Û^n»š¯-´Ó

Reply via email to