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

Getting parameter values from user and passing it t o applets

 
Rajeshwari Ramamurthi
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Say an applet accepts two parameters 'user' and 'password'.I need to accept these values from user and pass it to applet.
How can I do that ?
Thanks
Raji
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rajeshwari,
You have 2 choices:
1. Use applet GUI for the inputs. In this case the applet will have the strings.
2. Use a HTML Form and JavaScript. Dynamically create the HTML page to launch the applet. Use the PARAM HTML tag to send in strings. Inside your applet init method use the getParameter() method to get the strings.
Regards,
Manfred.
 
Rajeshwari Ramamurthi
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Back to work from vacation.
Thanks for your reply.
I have two questions.
1.) I am using swings API in my applets.It is working fine with the simple html code that I wrote. What is the advantage of using HTML Converter?. Will I face any problem because of this?
2.) If I have to use HTML Converter, is it possible to produce dynamic code using javascript for applet, as I need to set param values dynamically.
I am new to javascript.
Thanks
Raji
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic