Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet to use Servlet Context Object in jsp

 
Bahadir Mert Uzan
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • 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.

 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • 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).
 
Hugh Angle
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the list you want to pass to the applet of great length and complexity?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic