Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 61499 invoked from network); 5 Sep 2000 15:59:03 -0000 Received: from ihemail1.lucent.com (HELO ihemlsrv.firewall.lucent.com) (192.11.222.161) by locus.apache.org with SMTP; 5 Sep 2000 15:59:03 -0000 Received: from ihemlsrv.firewall.lucent.com (localhost [127.0.0.1]) by ihemlsrv.firewall.lucent.com (Pro-8.9.3/8.9.3) with ESMTP id LAA09250 for ; Tue, 5 Sep 2000 11:59:03 -0400 (EDT) Received: from ldvmail.ldv.lucent.com (h135-17-61-5.lucent.com [135.17.61.5]) by ihemlsrv.firewall.lucent.com (Pro-8.9.3/8.9.3) with ESMTP id LAA09239 for ; Tue, 5 Sep 2000 11:59:02 -0400 (EDT) Received: by ldvmail.ldv.lucent.com (8.9.1b+Sun/EMS-1.5 sol2) id LAA07148; Tue, 5 Sep 2000 11:59:02 -0400 (EDT) Received: from shoeless by ldvmail.ldv.lucent.com (8.9.1b+Sun/EMS-1.5 sol2) id LAA07144; Tue, 5 Sep 2000 11:59:01 -0400 (EDT) Message-ID: <012001c01752$a29429b0$2426598a@shoeless> From: "Steve Buroff" To: "tomcatUser" Cc: "Buroff, Steven" Subject: Multiple jsp:plugin elements Date: Tue, 5 Sep 2000 12:02:03 -0400 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_011C_01C01731.1AF5DA10" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. ------=_NextPart_000_011C_01C01731.1AF5DA10 Content-Type: multipart/alternative; boundary="----=_NextPart_001_011D_01C01731.1AF5DA10" ------=_NextPart_001_011D_01C01731.1AF5DA10 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable It appears that one cannot have 2 jsp:plugin elements in a JSP. In other words, you can't have 2 applets in the same page created froma JSP. Is this true? If so, is there a way to work around it? Thanks. I've attached my .jsp file and the error I get is below. The two applets are identical and each works alone. I created two after trying to include the same applet twice failed. I thought that might be the problem but it isn't. Steve Buroff Error: 500 Location: /psip/testApplets.jsp Internal Servlet Error: org.apache.jasper.JasperException: Unable to compile class for = JSPC:\tomcat\work\localhost_8080%2Fpsip\_0002ftestApplets_0002ejsptestApp= lets_jsp_47.java:95: Variable '_jspxString' is already defined in this = method. String _jspxString =3D null; ^ C:\tomcat\work\localhost_8080%2Fpsip\_0002ftestApplets_0002ejsptestApplet= s_jsp_47.java:98: Variable '_jspxNSString' is already defined in this = method. String [][] _jspxNSString =3D null; ^ C:\tomcat\work\localhost_8080%2Fpsip\_0002ftestApplets_0002ejsptestApplet= s_jsp_47.java:99: Variable 'i' is already defined in this method. int i =3D 0; ^ 3 errors at org.apache.jasper.compiler.Compiler.compile(Compiler.java:247) at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413) at = org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(Js= pServlet.java:149) at = org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet= .java:161) at = org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at = org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:5= 03) at = org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) at = org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnect= ion(Ajp12ConnectionHandler.java:156) at = org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:= 338) at java.lang.Thread.run(Thread.java:484) ------=_NextPart_001_011D_01C01731.1AF5DA10 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
It appears that one cannot have 2 = jsp:plugin=20 elements in a JSP.
In other words, you can't have 2 = applets in the=20 same page created
froma JSP. Is this true? If so, is = there a way to=20 work around it?
Thanks.
 
I've attached my .jsp file and the = error I get is=20 below. The two
applets are identical and each works = alone. I=20 created two after
trying to include the same applet twice = failed. I=20 thought that
might be the problem but it = isn't.
 
Steve Buroff
 

Error: 500

Location: /psip/testApplets.jsp

Internal Servlet = Error:
org.apache.jasper.JasperException: Unable to compile =
class for =
JSPC:\tomcat\work\localhost_8080%2Fpsip\_0002ftestApplets_0002ejsptestApp=
lets_jsp_47.java:95: Variable '_jspxString' is already defined in this =
method.
            String _jspxString =3D null;
                   ^
C:\tomcat\work\localhost_8080%2Fpsip\_0002ftestApplets_0002ejsptestApplet=
s_jsp_47.java:98: Variable '_jspxNSString' is already defined in this =
method.
            String [][] _jspxNSString =3D null;
                        ^
C:\tomcat\work\localhost_8080%2Fpsip\_0002ftestApplets_0002ejsptestApplet=
s_jsp_47.java:99: Variable 'i' is already defined in this method.
            int i =3D 0;
                ^
3 errors

	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:247)
	at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413)
	at =
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(Js=
pServlet.java:149)
	at =
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet=
.java:161)
	at =
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
	at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at =
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:5=
03)
	at =
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
	at =
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnect=
ion(Ajp12ConnectionHandler.java:156)
	at =
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:=
338)
	at java.lang.Thread.run(Thread.java:484)
------=_NextPart_001_011D_01C01731.1AF5DA10-- ------=_NextPart_000_011C_01C01731.1AF5DA10 Content-Type: application/octet-stream; name="testApplets.jsp" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="testApplets.jsp" XHTML Template

Testing Applets and the JSP Plugin






temp

------=_NextPart_000_011C_01C01731.1AF5DA10--