[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tapestry-user
Subject:    Re: @Script, how to, why, and whether?
From:       Harish Krishnaswamy <hkrishnaswamy () comcast ! net>
Date:       2003-09-27 16:03:00
[Download RAW message or body]

That's a good point, I shall add this to the wiki. BTW, one may find the 
previous explanation in the wiki under Tapestry FAQ @Script Why And How.

The resource-path is relative to the classpath, so /scripts/xyz.js may 
be placed under WEB-INF/classes/scripts/xyz.js.

-Harish

F. Da Costa Gomez wrote:

> F. Da Costa Gomez wrote:
>
>>
>>> Would I use a static-binding (in a .page or .jwc definition) with a 
>>> xyz.js as value to incorporate an 'ordinary' xyz.js file in an 
>>> .script template?
>>> Or how would I go about that?
>>
>>
>>
>> Never mind, had another look in the Dev gguide and it seems that I 
>> would have to use include-script to accomplish this.
>
>
> Hmm, bit pre-mature here.
> *http://localhost:8081/scripts* shows me the .js files (could this be 
> dis-allowed by any chance?) but including <include-script 
> resource-path="/scripts/xyz.js" /> does not seem to do the trick.
> Nor resource-path="xyz.js" nor resource-path="/app/scripts/xyz.js".
>
> What would be the correct approach to set the resource-path.
> *http://localhost:8081/app* points to the start of the app.
>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>>
>>
>>
>> __________ NOD32 1.519 (20030926) Information __________
>>
>> This message was checked by NOD32 Antivirus System.
>> http://www.nod32.com
>>
>>
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic