craigmcc 01/09/17 17:48:19 Modified: jasper/src/share/org/apache/jasper/compiler PluginGenerator.java Log: If the user's <jsp:plugin> tag has a "name" attribute, generate that in the corresponding <object> and <embed> elements created by the tag. PR: Bugzilla #3055 Submitted by: Dylan Schell <[EMAIL PROTECTED]> Revision Changes Path 1.4 +13 -3 jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/compiler/PluginGenerator.java Index: PluginGenerator.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/compiler/PluginGenerator.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- PluginGenerator.java 2000/11/30 21:47:57 1.3 +++ PluginGenerator.java 2001/09/18 00:48:19 1.4 @@ -1,7 +1,7 @@ /* - * $Header: /home/cvs/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/compiler/PluginGenerator.java,v 1.3 2000/11/30 21:47:57 pierred Exp $ - * $Revision: 1.3 $ - * $Date: 2000/11/30 21:47:57 $ + * $Header: /home/cvs/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/compiler/PluginGenerator.java,v 1.4 2001/09/18 00:48:19 craigmcc Exp $ + * $Revision: 1.4 $ + * $Date: 2001/09/18 00:48:19 $ * * ==================================================================== * @@ -129,6 +129,11 @@ writer.print ("out.println (\"<OBJECT classid=\\\""); writer.print (ieClassId); writer.print ("\\\""); + if (name != null) { + writer.print(" name=\\\""); + writer.print(name); + writer.print("\\\""); + } generateCommon (writer); writer.print (" codebase=\\\""); if (iepluginurl == null) @@ -287,6 +292,11 @@ writer.print (jreversion); } writer.print ("\\\" "); + if (name != null) { + writer.print(" name=\\\""); + writer.print(name); + writer.print("\\\""); + } generateCommon (writer); writer.print ("pluginspage=\\\""); if (nspluginurl == null)