This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
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.
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
 
It's not a secret anymore!