• 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

Servlet with url problems

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, kind of a newbie question - but causing me headaches

Given the following file structure:

My servlet needs access to the applet: PhWebLogon.class

Have the following in a web definition file:
<h1>Logon Page </h1>
<applet code="PhWebLogon.class" width="@screenwidth" height="@screenheight" >
No Logon Applet? </applet>

But can't seem to get the url code="PhWebLogon.class" right.
(Sevlet can't find applet)

Any help is much appreciated

/Lars
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Servlets can use classes that are in the classes directory (and lib etc.), not from just anywhere in the web hierarchy. Applets of course can't use classes inside of WEB-INF, so I think you need to duplicate the class files.
 
Lars Christian Hansen
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Ulf, seems like that worked.

/Lars
 
reply
    Bookmark Topic Watch Topic
  • New Topic