You are here:

Java/Define two Applet tag on JSp

Advertisement


Question
Dear Sir I am Using Struts Framework (Struts 1.0.2) and i have define on jsp, Two applet tag Like below
<applet name="Signer" codebase="/opp/applet" code="SignerApplet" archive="SignerApplet.jar" width="0" height="0" >  
<PARAM NAME="submitUrl" VALUE="<%=linkUrl%>">  
 </applet>  
 
<applet name="Symmetric" codebase="/opp/applet" code="Encryption.class" archive="Encryption.jar" width="0" height="0" >  
</applet>  

The Problem is this That Its working with the Some jre versions like 1.6.0.1 but Its not working With The other JRe 1.6 versions and Never Work With jre 1.7.

So Can you Please help me How can I use These Two applet tag on jsp so its can work with All the JRE versions.

Answer
The only issue I see is that it should be code="SigerApplet.class" not simply "SigerApplet".
It is probably an issue with the application itself. You should try to use the appletviewer program to run the applet, as that will easily let you see any errors that pop up.

Also, use of the applet tag is deprecated. You should use the object as instructed here:
http://docs.oracle.com/javase/7/docs/technotes/guides/plugin/developer_guide/usi

Java

All Answers


Answers by Expert:


Ask Experts

Volunteer


Artemus Harper

Expertise

I have a Masters in computer science. I can answer questions on core J2SE, swing and graphics. Please no questions about JSP or J2ME.

Experience

I have experience in Core Java, good background in Java swing/gui, some experience with JNI, Java reflection. Some experience in bio-informatics. Basics in c++ and c#

Organizations
Washington State University

Education/Credentials
MS in Computer Science from Washington State University and a BS in Mathematics and Computer Science from Central Washington University.

©2016 About.com. All rights reserved.