Re: file locations
Re: file locations
- Subject: Re: file locations
- From: Chuck Hill <email@hidden>
- Date: Fri, 12 Nov 2004 15:12:29 -0800
At 03:52 PM 12/11/2004 -0700, Wes James wrote:
>I just slapped together a quick project and put only a woimage in
>main.wo. I then put in /slides/a1.jpg into the src attribute of the
>woimage component and I immediately saw the a1.jpg in the wocomponent.
>
>I built and ran the project and the picture came right up on the page
>and the source shows this....
>
><img src="/slides/a1.jpg">
>
>
>So the D2WFileFromPath is using the framework/filename attributes
>which are static locations. How do I get the D2W to use the src
>attribute and not the frmwrk/filename attribute?
I can't find (nor can Google) anything called D2WFileFromPath? Is that
from Wonder? It could be that you are just plain using the wrong magic
here. You have an object. It has the file path. What is wrong with just
using a plain, ole WOImage? Bind source to slide.pathToSlide and be done
with it. No magic required.
>That's the key to
>this one I think..... I'll have to look in the web assitant and see
>what I can see.
>
Check the javadocs for D2WFileFromPath
>Chuck - thanks for your help!
>
You're welcome
Chuck
--
Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden