This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

recieving parameters

 
Mike Phillip
Ranch Hand
Posts: 37
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 37
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic