wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 41038
    
  43
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: recieving parameters
 
Similar Threads
applet doesn't get gif in browser from jar
How to Pass ArrayList to Applet?
Parameter values not reaching the web service methods
Launch an application via an Applet
Please help me in Applet RMI communication