logo       

mozilla certificate for remote applications: msg#00007

Subject: mozilla certificate for remote applications
Hi,

I have a question about using mozilla certificate
for remote applications.


I'm doing a Web application using Java and Javascript.
The Web server I'm using now is apache tomcat 4.1.


My application generates html documents dynamically.
For example, I have static html files: main.html.
Based on the user action from the browser, my application
reads the static html file and outputs some text
to the static html file then display that on the
Mozilla web browser.

I want to use some XPConnect functions that
Mozilla browser supports, so I put a Javascript
function in the main.html file as following:

--------------------------------------------------------
function addXptr()
{
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
var xptrService =
Components.classes["@mozilla.org/xpointer-service;1"].getService();
xptrService =
xptrService.QueryInterface(Components.interfaces.nsIXPointerService);
var xptrString =
xptrService.createXPointerFromSelection(window._content.getSelection(),
window._content.document);
alert(xptrString)
}
---------------------------------------------------------

I imported a certificate to the Mozilla browser.
If I put main.html in a jar (li.jar!/main.html)
file, then I can use the  XPConnect function.

But the problem is, since my application reads
the main.html and then modifiy it and then
submit this html file to the web browser, the
file's content changes, so I don't know
how to access the modified html file.

Because if I sign the static html file with
a certificate, I only can access the static
html file, not the changed file.


So I wonder is there a way to sign
a remote application with dynamic html
documents? Can I call XPConnect within
a Java application?



Thank you very much.


Li Zhang


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
linux.arklinux....    user-groups.lin...    kde.usability/2...    ietf.ipp/2002-0...    mail.spam.spamc...    os.netbsd.devel...    audio.cd-record...    text.unicode.de...    php.documentati...    games.fps.halfl...    window-managers...    suse.oracle.gen...    bug-tracking.gn...    video.dvdrip.us...    xfree86.cvs/200...    java.netbeans.m...    network.argus/2...    culture.sf.kill...    debian.ports.al...    freebsd.questio...    qplus.devel/200...    handhelds.palm....   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe