aspose file tools*
The moose likes Applets and the fly likes recieving parameters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "recieving parameters" Watch "recieving parameters" New topic
Author

recieving parameters

Mike Phillip
Ranch Hand

Joined: Dec 05, 2007
Posts: 37
Hi, I have some doubts with applets.

I have a Servlet, and in one of the pages I need an applet to do some tasks in the client machine (say: choose an image and resize it, before a future upload).

If a make the applet a .jar can I pass Strings parameters to it (say, Strings in the page)?
or if I don't make a .jar can the client use it?

don't know if I was clear, sorry
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42291
    
  64
You don't need to create a jar file; it's possible to keep a hierarchy of loose class files instead. I find it almost always advantageous to create a jar file, though (it's easier to deploy, for one thing).

You can pass string parameters to the applet using <PARAM> tags inside of the APPLET tag. Those should be easy to generate if the page is created by a JSP or a servlet. See here for more detail.


Ping & DNS - my free Android networking tools app
Mike Phillip
Ranch Hand

Joined: Dec 05, 2007
Posts: 37
Originally posted by Ulf Dittmer:
You don't need to create a jar file; it's possible to keep a hierarchy of loose class files instead. I find it almost always advantageous to create a jar file, though (it's easier to deploy, for one thing).

You can pass string parameters to the applet using <PARAM> tags inside of the APPLET tag. Those should be easy to generate if the page is created by a JSP or a servlet. See here for more detail.


thanks
 
wood burning stoves
 
subject: recieving parameters