Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can an applet access url parameters?

 
James Hodgkiss
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My applet is contained within a web page called start.htm .

If a user is directed to start.htm?username=hisUsername&password=myPassword , then how can the applet obtain those username and password parameters?

Thanks,
James
 
Chetan Parekh
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to pass them as parameter value to Applet.
 
James Hodgkiss
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure, but how would I get start.htm's url parameter values into the applet's parameter tags?

Cheers,
James
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
start.htm could be a servlet or JSP; then it could embed its query parameters into the applet tag.
 
James Hodgkiss
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unfortunately, the server doesn't support JSP or servlets.

Could it be possible with javascript?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic