wood burning stoves 2.0*
The moose likes Applets and the fly likes Pass a variable from applet to a jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Pass a variable from applet to a jsp" Watch "Pass a variable from applet to a jsp" New topic
Author

Pass a variable from applet to a jsp

Rodricks george
Ranch Hand

Joined: Sep 10, 2006
Posts: 97
Dear Sir,

I want to pass a variable from applet to a jsp.... applet should redirect to another jsp and value i should get to redirected jsp... Is that possible


-Rodricks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41600
    
  55
Yes, that's possible via URL parameters. It would look something like


Ping & DNS - my free Android networking tools app
Rodricks george
Ranch Hand

Joined: Sep 10, 2006
Posts: 97
Dear Sir,

Yes its working fine.... now i want to do the same thing for Swing class which extends Jpanel...

after clicking the save button .... it should forward to another Jsp with some parameter. please give some idea

-Rodricks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41600
    
  55
Why would that be any different? You need a reference to the applet class (or the AppletContext) in your class, so you need to think about how to pass that reference to your class.
 
Consider Paul's rocket mass heater.
 
subject: Pass a variable from applet to a jsp