• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Where to Put Applet Classes or JAR File?

 
Edmund Yong
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In a web application, classes are put under WEB-INF/classes and JAR files are put under WEB-INF/lib. These files cannot be directly accessed by the client. But what about applet classes, or a JAR file that contain classes for the applet? Where should they be put?

Thanks in advance.
 
Daniel Rhoades
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any sub-dir of your web root except web-inf and meta-inf, they don't need to be in a package tree either
 
Sergey Tyulkin
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Of course, they should be accessible by the client, as the browser will need to GET them.
And there is nothing wrong to put them in accessible directory, as it was intended, isn't it?
 
Rollyn
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

i think you can put it anywhere because it is run from the client, so you don't need to protect it.
 
amit taneja
Ranch Hand
Posts: 813
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
whats wrong if we put it in web-inf directory as there is link of applet from the jsp/servelt and the applet is not going to be called directly..

so i know that we can't access the files under web-inf directly..

pls confirm me
 
Edmund Yong
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks guys for your replies.

Contrary to what amit said, I don't think we can put the applet files in WEB-INF. Unlike servlet classes, the applet classes have be transmitted over to the client side to run. If you put the applet classes in WEB-INF, then the server will prevent them from being transmitted over to the client side.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic