Help in building Password manager in JAVA


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Help in building Password manager in JAVA

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Posts
    1

    Help in building Password manager in JAVA

    Hi,
    I m a student & I want to make Password manager as a project.(similar to the WAND in Opera).
    For this, I want to know how can the JAVA application & the browser inter-communicate, i.e. when one saves the password, how will the application extract username & password from web-page. Similarly, when user wants to use this application to put the password, how can it decide the web-page & how will it select a username & put it in browser.

    Kindly help.

    Thanx in advance.

  2. #2
    Join Date
    Jul 2005
    Location
    SW MO, USA
    Posts
    299
    There is an awkward/unreliable communication between HTML being displayed in a browser and a Java applet via Javascript.
    Applets can load new pages into the browser with a method. To control what's on that page would require server-side code to construct the page that is returned to the browser when the applet requests it.

  3. #3
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560
    A java applet's public methods can be accessed by javascript, - you use the name from the applet tag, not the class name so if your applet tag is like:
    Code:
    <applet
      codebase = "."
      code     = "forest.Forest.class"
      name     = "Hunters"
    .
    .
    and your applet has a public method doThis(int i) you
    can invoke it from javascript like:

    Code:
    x=50;
    Hunters.doThis(x);
    With Netscape's JSObject package a java applet can access all the elements
    in a html page, including javascript functions. This requires that the browser
    has the JSObject plugin, which my browser apparently has by default. Also,
    you must include the MAYSCRIPT attribute in the applet tag, this is a
    one word attribue; its by default off, to set it on, just include the word in the
    applet tag.

    Javascript comes in many fashions and while all features are available in
    some browsers other browsers just support a subset. In other words,
    when implementing "advanced" methods of a web page involving applets,
    html & javascript communication, it is nescessary to test run the setup in
    more than one browser.

    But, if your web page evolves like a tight knit application consisting of
    applet(s), web pages and javascript, you should consider going just applet all the way, at least I would.
    Last edited by sjalle; 10-04-2005 at 12:18 PM.
    eschew obfuscation

Similar Threads

  1. Java vs. .Net. A questionnaire
    By Basil in forum .NET
    Replies: 1
    Last Post: 05-13-2005, 07:46 AM
  2. DevX does seem one sideded
    By Rob Abbe in forum Talk to the Editors
    Replies: 44
    Last Post: 01-13-2003, 03:57 PM
  3. Re: VB vs. Visual Age for Java
    By JJ in forum Enterprise
    Replies: 1
    Last Post: 07-06-2000, 05:50 AM
  4. Java - userid & password checking
    By RogerLacroix in forum Java
    Replies: 4
    Last Post: 06-27-2000, 12:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center