Announcement Announcement Module
No announcement yet.
osgi web bundle with applet Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • osgi web bundle with applet

    I am looking to incorporate an applet in my web page but I am having trouble with how it needs to be packaged in the bundle to be able to be retrieved by the jsp page. Currently I only get class not found errors. Are there any simple examples of this available?

  • #2
    OSGi is serverside stuff so it won't affect applets which are like images or any other static content as far as the war is concerned. You should be able to treat the web bundle just as if it were any other war containing an applet. Put the applet in the same place you put your images/static html pages, (i.e. not your WEB-INF) folder

    --- WEB-INF/
    -------- web.xml
    -------- jsps etc..
    --- images/
    -------- image.jpg etc
    --- applets/
    -------- SuperCoolApplet.class

    then you can access it through
    <applet code='SuperCoolApplet.class' codebase='/applets' />



    • #3
      Ah okay I get it now. Thanks a lot for the example.