Skip to main content

Browser Queries

7 replies [Last post]
Anonymous

Hi all,
I have a couple of queries about the Browser
application.
1. HTTPS sites do not seem to work with the sample
browser. I read some mails on the list, and the
changes are in my code to handle urls starting with
https. The api method gets called, but nothing
happens.
2. I have both Mozilla and IExplorer installed. Is it
possible to specify which browser to embed (rather
than the default)?
Thanks for any advice,
Manjuka

Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: jdic-unsubscribe@jdic.dev.java.net
For additional commands, e-mail: jdic-help@jdic.dev.java.net

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
georgez
Offline
Joined: 2003-08-19

Hi,

> 1. HTTPS sites do not seem to work with the sample
> browser. I read some mails on the list, and the
> changes are in my code to handle urls starting with
> https. The api method gets called, but nothing
> happens.

I just checked with JDIC 0.8.5 that, https://jdic.dev.java.net gets loaded without any problem in the Browser demo, with IE or Mozilla 1.4.1 as the default browser. Could you first check this website, and then check the proxy setting?

> 2. I have both Mozilla and IExplorer installed. Is it
> possible to specify which browser to embed (rather
> than the default)?
Currently no. There is the code to do so, but it's hidden for now. You can see in file:
https://jdic.dev.java.net/source/browse/jdic/src/jdic/src/share/classes/...
there is:
private static String browserBinary;
which "indicates which binary of native browser code will be used. The property can be set as
WebBrowser.browserBinary = "IeEmbed.exe" or
WebBrowser.browserBinary = "MozEmbed.exe" on Windows, and
WebBrowser.browserBinary = "mozembed--gtk*" on Unix.
"
So, if we make "browserBinary" public, then you can specify to use IE or Mozilla as the embedded browser, not the default browser now.

The reason we hid that is, the user may not need to specify which browser (IE or Mozilla) to use. And make this "browserBinary" public requires the user to know that this is not the browser (IE or Mozilla) binary (iexplorer.exe or mozilla.exe), but the embedded executable binary (IeEmbed.exe or MozEmbed.exe) bundled in the JDIC release.

Could you comment why you want to specify Mozilla or IE as the embedded browser ?

Thanks,
-George.

Manjuka Soysa

Hi George,
Thanks for the reply.

> https://jdic.dev.java.net gets loaded without any
> problem in the Browser demo, with IE or Mozilla
> 1.4.1 as the default browser. Could you first check
> this website, and then check the proxy setting?

Yes that site works. I think the problem is when the
certificate is signed by a non-recognized CA or if the
hostname cannot be verified.
Normally IE or Mozilla would put up a dialog asking
the user if you want to go ahead.
This does not happen with the JDIC embedded browser.
Try:
https://demo.dejc.com:8443/catalog/control/login/main?USERNAME=demoadmin...

> Could you comment why you want to specify Mozilla or
> IE as the embedded browser ?
I have a web application which looks slightly
different on Mozilla and IE.. as I am only expecting
Windows users, I wanted to force IE so that every user
gets a consistent look.

cheers,
Manjuka

Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: jdic-unsubscribe@jdic.dev.java.net
For additional commands, e-mail: jdic-help@jdic.dev.java.net

georgez
Offline
Joined: 2003-08-19

Hi Manjuka,

> This does not happen with the JDIC embedded browser. Try:
>https://demo.dejc.com:8443/catalog/control/login/main?USERNAME=demoadmin&PASSWORD=ofbi

I can't access this link even in IE or Mozilla. Are you sure it's accessible ?

I did try to load another link with a poping up dialog asking to approve or refuse a signed CA in the JDIC Browser demo. Could you check another link and send it to me ?

> I have a web application which looks slightly
> different on Mozilla and IE.. as I am only expecting
> Windows users, I wanted to force IE so that every user
> gets a consistent look.

I understand. In release 0.8.5, by checking and embedding the default browser, we removed the MOZILLA_FIVE_HOME related setting for the end users.

If we expose "browserBinary" varilable, so that the developers can specify IE or Mozilla to embed, instead of the default browser. There would be one problem:
Suppose IE is the default browser, but Mozilla is specified as the embedded browser, the user would have to specify MOZILLA_FIVE_HOME and add it to PATH/LD_LIBRARY_PATH (like 0.8.4.*), since it can't be automatically checked. Is that a regression? We've tried to remove those additional settings to minimal.

So, it's a problem. :-(. By the way, I feel that on Windows, most people seem using IE as the default browser(?).

Thanks,
-George.

Manjuka Soysa

Hi George,
>https://demo.dejc.com:8443/catalog/control/login/main?USERNAME=demoadmin&PASSWORD=ofbi
>
> I can't access this link even in IE or Mozilla. Are
> you sure it's accessible ?
Strange.. it works for me on both Mozilla and IE.
It is the ofbiz demo site, so you can go to
www.ofbiz.org and click the link for Management
Console under Demo Site section.
You can also try https://mail.yahoo.com
By the way, my embedded browser is IE 6.0.26.

thanks,
Manjuka

Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: jdic-unsubscribe@jdic.dev.java.net
For additional commands, e-mail: jdic-help@jdic.dev.java.net

georgez
Offline
Joined: 2003-08-19

Hi Manjuka,

I just verified that after I changed to another proxy, that link is accessible in IE or Mozilla.

And I tested that:
On Windows, both the links can be accessed correctly (with the pop up dialogs) with JDIC Browser demo embedding Mozilla (1.4.1, please use this 1.4.1 version, there is a known problem that it doesn't work with 1.5/1.6/1.7), but not working while embedding IE.

On Linux, both the links can be accessed embedding Mozilla 1.4.1.

So, it looks like only a problem with IE on Windows. Could you report an issue so that we can track it, and could you check it using Mozilla 1.4.1 on Windows ?

Thanks,
-George.

korimilli
Offline
Joined: 2005-04-06

Hi George
I am having problems loading https:// sites in the JDIC browser on Windows, which prompt with CA certificate Popup Dialog when you go the site.

Do you if this has been fixed yet? I am using the jdic version 0.8.6.

Tks
Kishore

armin_chen
Offline
Joined: 2004-09-29

Hi Manjuka and Kishore,

This bug has been fixed. See details at:
https://jdic.dev.java.net/issues/show_bug.cgi?id=97
Now, the JDIC WebBrowser work fine with https website that signed by an unrecognized CA. You can get the code from jdic CVS tree.

Armin