View Single Post
  #1 (permalink)  
Old 10-06-2008, 04:16 PM
bhupendrabjain bhupendrabjain is offline
Member
 
Join Date: Oct 2008
Posts: 3
bhupendrabjain is on a distinguished road
passing value from jsp to applet
Hi



I have been stuck with jftp applet for a long time. I don’t have any idea about how to pass value from jsp to applet at run time.



The current JFtpApplet code is given below



Public class JFtpApplet extends Applet

{

Public JFtpApplet ()

{

AccessController.doPrivileged (new PrivilegedAction())

{

Public Object run ()

{

JFtp.main(new String[0]);



return new Object();

}

});

}



This class internally calls the main method of JFTP class which will start the applet. The main method normally takes string array as an input parameter. I want this string array to be initialized in the JFtpApplet class and the value to this array has to be passed from JSP. Is it possible with the current design of JFtpApplet class to take the value from jsp? If yes then can u give me a sample code where this has been done? Is there any flaw in the JFtpApplet code because

I have tried using getParameter method (this approach was given on net) in the JftpApplet class but have not been able to see the value getting passed from jsp to applet.



Thank you.
Reply With Quote
Sponsored Links