• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
WOImage?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

WOImage?


  • Subject: WOImage?
  • From: email@hidden (Paul L Merchant Jr.)
  • Date: 04 Mar 2003 16:56:08 EST

I have a very simple question:  How do I get WOImage to display an image
in an application built in the WebServer build style?

Here are the details:  Using WebObjects 5.2, I created a new WebObjects
application.  I added a JPEG to the Web Server target of the project,
and dragged the image to the Main page in WebObjects builder to create a
WOImage component with the image's file name.  Seems simple enough, and
it works fine under the Development build style.

But, when I build the application with the WebServer build style to get
a split install, and run it on that same OS X system, the image doesn't
appear and the SRC in the IMG tag is
"/ERROR/NOT_FOUND/app=Test/filename=myimage.jpg".

Now the image is being installed in what appears to be the correct
directory under my web server
(/Library/WebServer/Documents/WebObjects/Test2.woa/Contents/WebServerResource

s/myimage.jpg) and if I point my browser at the corresponding URL, the
image displays.  The problem seems to be that WOImage is trying to
locate the image and can't.  I suspect there's something I need to set
to tell my application where the web server root is, but I don't know
what it is.

If it makes a difference, I'm using Project Builder from the December
'02 developer tools to build the project and I'm not running pbxbuild
directly.

While I'm on the topic, I also had to set DSTROOT to / in my WebServer
build style to make the application install in the proper places.
Without it, Project Builder left the application in a directory in /tmp.
  Is this documented somewhere I haven't seen?

Seems like both of these should be simple problems to resolve, but I
can't find the right place to look.

Thanks in advance for any advice you can give me!

Paul Merchant, Jr.
Digital Library Technologies Group
Dartmouth College
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: WOImage?
      • From: Art Isbell <email@hidden>
    • Re: WOImage?
      • From: Ricardo Strausz <email@hidden>
  • Prev by Date: Re: Using 'match' in EOQualifier statement
  • Next by Date: Cross-platform using WebObjects?
  • Previous by thread: Re: WO Authentication
  • Next by thread: Re: WOImage?
  • Index(es):
    • Date
    • Thread