Results 1 to 3 of 3

Thread: osgi web bundle with applet

  1. #1
    Join Date
    May 2010
    Posts
    2

    Default 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. #2

    Default

    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

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

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

    -A

  3. #3
    Join Date
    May 2010
    Posts
    2

    Default

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •