• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

recieving parameters

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic