I have some problem with my latest project.
I develop a web based application based on Java platform, using JSF. I use 
uBuntu 8.10 for the Operating System.

The web application would show list of available Print Service
in a DropDownList.

public SelectItem[] getPrintServiceList() {
        SelectItem[] arr = null;

        PrintService[] service = PrintServiceLookup.lookupPrintServices(null, 
null);
        System.out.println(service.length);
        arr = new SelectItem[service.length];
        for (int i = 0; i < service.length; i++) {
            System.out.println(service[i].getName());
            arr[i] = new SelectItem(service[i].getName(), service[i].getName());
        }
        return arr;
    }


But what happen... the list won't show. The weird things i do test deploy the 
same application in Windows platform and it works!

I have tried to create a simple application (Console based), to use
lookupPrintService method, and it works. it shows all printer that has
been set up in CUPS.

Output:
Canon
Tally

But why it won't show in Web Application (in DropDownList).
Any body can help me.

Below i attach what should shown in Windows platform. It list all
available printers. but when i deply on uBuntu, it doesnt work.

Is there any issue how to get Java Print correctly (j2ee applications)
in uBuntu platform.

** Attachment added: "Java Printing problem in uBuntu 8.10"
   http://launchpadlibrarian.net/23335007/screenshot.JPG

-- 
Printing from Java does not work
https://bugs.launchpad.net/bugs/86970
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to