• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

Webpage has embed applet, can we get Username & password from webpage in the applet

Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a requirement where the username & password from webpage that contains the applet needs to be available in the applet also.

To illustratrate.
1. User logs in to site using form based authentication
2. Home page contains/embeds an applet where we need the already authenticated username & password to do some separate processing.

Can anyone please help me with this problem.


Posts: 43016
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since this is then (after the login) presumably a secure connection using SSL, the easiest would be to embed them as parameter tag in the applet tag.

But do you really the username and password? Or is it a case where you want to be sure that the applet that accesses the server comes from an authenticated user? If the latter, you could pass some secure (hashed) user identifier to the applet, which would then use that whener it needs to access the server.
All of life is a contant education - Eleanor Roosevelt. Tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic