Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Accessing Jar file

 
Prakash Talla
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a jsp page(login.jsp) in the WEB-INF folder(test/WEB-INF) on the web server.
'login.jsp' has an applet in it(systemApplet). The jar file containing the class files for the applet is in the 'test' directory, 'test' is the root-context of my application.

'login.jsp' accesses some of the styles sheets from a different server(http server), but when I move the jar file to the http server and try to access the jar file, I am not able to do access.
The applet is still looking for the jar file in the 'test' directory.
Is there a way I can access the jar file placed on the http server?
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

That's what the CODEBASE (and ARCHIVE) attributes of the APPLET tag are for.
 
Prakash Talla
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot Ulf. It worked using the CODEBASE tag.

Surya
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic