• 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

Applet to use Servlet Context Object in jsp

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello My name is Mert from UK

I am trying to build an Applet that needs a list inside to run. I have a list that I build through mysql server in ServletContextListener
What i want to do is to get this list and put it into an applet. I know how to get context object but i dont know how to put it into applet.
Also I have no idea where to use applet other that putting JPanels inside them.
My only need is to display dynamic pictures from the list to the web browser and applet seems to
be the easiest of all.
I would very much appreached if you can write up some jsp and applet code, not single one of my examples are worthy to show.

 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Runnin on the client, the applet can't access objects that are part of the server. The easiest way would be transfer all information the applet needs in <param> tags inside the applet tag. See here for more detail on that.

I'm not quite sure what "display dynamic pictures from the list" means, but using JavaScript it's possible to load, display and change images in a web page on the fly. That would probably be a better user experience than an applet (if it can do what you need done).
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is the list you want to pass to the applet of great length and complexity?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic