my dog learned polymorphism*
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
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: 42915
    
  68
Yes, that's possible via URL parameters. It would look something like
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: 42915
    
  68
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Pass a variable from applet to a jsp