Friday, 15 May 2015

maven - Webpage can not access jar for applet -



maven - Webpage can not access jar for applet -

i created 2 maven project: project-applet , project-webapp.

the java applet works fine: can start applet-viewer in static html file necessary applet-tag.

now i'm trying move static html file servlet (actually it's content) index.jsp

<html> <body> <applet code="project.applet.applet.class" codebase="/lib" archive="project-applet-0.1.0.build-snapshot.jar" width="900" height="300"> browser ignoring applet tag! </applet> </body> </html>

i'm building maven. project-applet-0.1.0.build-snapshot.jar in project-webapp-0.1.0.build-snapshot.war file in position web-inf/lib/.

i tried re-create project-webapp/src/main/webapp/ codebase="/" didn't help if jar can download localhost:8080/project-webapp/project-applet-0.1.0.build-snapshot.jar.

can help me? thanks!

if jar lying @ localhost:8080/project-webapp/project-applet-0.1.0.build-snapshot.jar, codebase codebase="/project-webapp/"

maven servlets applet

No comments:

Post a Comment