• 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
Swing method call makes WOBootstrap appear
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Swing method call makes WOBootstrap appear


  • Subject: Swing method call makes WOBootstrap appear
  • From: Brendan Duddridge <email@hidden>
  • Date: Mon, 17 Nov 2003 16:11:01 -0700

Hi,

I9m calling a couple of Java swing methods from my within my WO app in order
to extract the links from an HTML document.

Here9s the code:

int index = 1;
String displayText = null;
StringReader rd = new StringReader(item.itemValue());
// Parse the HTML
EditorKit kit = new HTMLEditorKit();
HTMLDocument doc = (HTMLDocument)kit.createDefaultDocument();
kit.read(rd, doc, 0);

// Find all the A elements in the HTML document
HTMLDocument.Iterator it = doc.getIterator(HTML.Tag.A);
while (it.isValid()) {
    SimpleAttributeSet s = (SimpleAttributeSet)it.getAttributes();

    String link = (String)s.getAttribute(HTML.Attribute.HREF);
    NSLog.out.appendln("*** found link: " + link);
    if (link != null) {
        // Add the link to the result list
        linkArray.addObject(link);
    }
    it.next();
}

When I get to the point in my application where I execute this code, the
WOBoostrap icon pops up on my Dock. The code works correctly as expected.
I'm just not sure what's going to happen in a deployment environment where
there are no users logged in on my Xserves and in fact, since my deployment
Xserve is a Cluster node, there is no video card available anyway.

Will this cause a problem? My deployment environment is Panther Server
10.3.1, WO 5.2.2, Java 1.4.1.

I suspect since Java 1.4.1 has support for headless operation I would think
that it's ok.

Does anyone know why the WOBoostrap application shows itself when calling
this code? Will it be a problem in deployment?


Thanks,

___________________________

Brendan Duddridge

ClickSpace Interactive Inc.
Calgary & Vancouver, Canada
(403) 277-5591
http://www.clickspace.com
_______________________________________________
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: Swing method call makes WOBootstrap appear
      • From: Hsu <email@hidden>
  • Prev by Date: NSObjectController
  • Next by Date: LogIn
  • Previous by thread: Re: NSObjectController
  • Next by thread: Re: Swing method call makes WOBootstrap appear
  • Index(es):
    • Date
    • Thread