this is my structure
webapp
|-myapplication
|-WEB-INFO
|-images
|-0001.jpg
|-start.tml
so
@Inject
@Path("context:images/0001.jpg")
private Asset img0001;
so when u re-deploy the application
juz overwrite (copy-paste from local testing application folder) all the
content except the images folder
(don use war)
[EMAIL PROTECTED] wrote:
I have tried the following:
public abstract class Test extends TrailsPage {
public IAsset getTest(){
FileResource resource = new FileResource("Z:\\Media\\0001.JPG");
Location location = new LocationImpl(resource);
IAsset image =
this.getEngine().getInfrastructure().getAssetFactory().createAsset(resource,
location);
return image;
}
... but this leads to a "Could not find a strategy instance for class
org.apache.hivemind.util.FileResource" exception.
-------- Original-Nachricht --------
Datum: Fri, 11 Jan 2008 19:27:26 +0800
Von: Dapeng <[EMAIL PROTECTED]>
An: Tapestry users <users@tapestry.apache.org>
Betreff: Re: How to use images outside webroot
juz copy ur application to the webapps folder
it works fine for me
200M static files
then u can use the images inside the root
[EMAIL PROTECTED] wrote:
What plugins are you using?
What would be the "manual" step to achieve this?
How do I avoid that I get a several Gigabyte big .war file ?
-------- Original-Nachricht --------
Datum: Thu, 20 Dec 2007 16:08:02 +0100
Von: Sven Homburg <[EMAIL PROTECTED]>
An: Tapestry users <users@tapestry.apache.org>
Betreff: Re: How to use images outside webroot
goto Project Settings
and add a new "Web Resource Directory"
best regards
S.Homburg
[EMAIL PROTECTED] schrieb:
During development I would like to access/use images that are on a
network drive (e.g. f:\images) as I dont have enough space on my
harddisk.
How can I tell Tapestry that it finds
"localhost:8080/images/image.gif"
here "f:\images\image.gif" ?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]