<jsp:plugin  type="applet" code="com.test.chart.AppletEntry.class"
codebase="<%= request.getContextPath()%>applet" archive="test.jar" width="1000" height="650" jreversion="1.4">
  <jsp:params> 
    <jsp:param name="url" value="<%= request.getRequestURL()%>" /> <、jsp:params> 

            </jsp:plugin>

解决方案 »

  1.   

    你是指要将applet嵌入到jsp中吗?如果是则将applet的jar与该jsp放在同一路径下,
    利用html代码即可实现将applet嵌入到jsp中
    <applet code="com.test.chart.AppletEntry.class" archive="test.jar" width="1000" height="650" >
    <param name="" value="<%= request.getRequestURL()%>" ></param>
    </applet>
    记得applet的jar要签名,否则不能访问客户端文件系统
      

  2.   

    这个回复很好。我们编译好的class一般放在 WEB-INF/classes 下面。这个目录对外是不能访问的。