• 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
Re: WOImage: Load Any image with certain prefix...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOImage: Load Any image with certain prefix...


  • Subject: Re: WOImage: Load Any image with certain prefix...
  • From: Sacha Mallais <email@hidden>
  • Date: Thu, 30 Jun 2005 11:17:16 -0700

On Jun 30, 2005, at 11:11 AM, Nathan Walker wrote:

Is this possible?

public String myImageSrc() {
    return "/uploadedImages/topImage" + "*";
}

Not knowing the last remaining name of the image I could load it in by looking for the image that precedes with "topImage".
For example, the imagename could be "topImageSunset.gif"....


That code is valid, but if you would like that to be a meaningful value for the src binding of a WOImage, then no.


Anybody know a good way to do this?

You'll probably have to do file globbing on the directory yourself and figure out which one you want.



sacha

_______________________________________________
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


  • Follow-Ups:
    • Re: WOImage: Load Any image with certain prefix...
      • From: Nathan Walker <email@hidden>
References: 
 >WOImage: Load Any image with certain prefix... (From: Nathan Walker <email@hidden>)

  • Prev by Date: WOImage: Load Any image with certain prefix...
  • Next by Date: Re: WOImage: Load Any image with certain prefix...
  • Previous by thread: WOImage: Load Any image with certain prefix...
  • Next by thread: Re: WOImage: Load Any image with certain prefix...
  • Index(es):
    • Date
    • Thread