[jboss-cvs] JBossAS SVN: r61305 - branches/Branch_4_2/varia/src/resources/jmx/html.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Mar 13 15:35:39 EDT 2007


Author: scott.stark at jboss.org
Date: 2007-03-13 15:35:39 -0400 (Tue, 13 Mar 2007)
New Revision: 61305

Modified:
   branches/Branch_4_2/varia/src/resources/jmx/html/inspectMBean.jsp
Log:
JBAS-4183, add the apos quoting

Modified: branches/Branch_4_2/varia/src/resources/jmx/html/inspectMBean.jsp
===================================================================
--- branches/Branch_4_2/varia/src/resources/jmx/html/inspectMBean.jsp	2007-03-13 19:34:36 UTC (rev 61304)
+++ branches/Branch_4_2/varia/src/resources/jmx/html/inspectMBean.jsp	2007-03-13 19:35:39 UTC (rev 61305)
@@ -18,7 +18,8 @@
    }
    public String quoteName(String name)
    {
-      String sname = name.replace("\\\"", """);
+      String sname = name.replace("\"", """);
+      sname = name.replace("\'", "'");
       return sname;
    }
 %>
@@ -145,8 +146,11 @@
          }
          else if( attrInfo.isReadable() )
          {  // Text fields for read-write string values
+            String avalue = (attrValue != null ? attrValue : "");
+            if( attrType.equals("javax.management.ObjectName") )
+               avalue = quoteName(avalue);
 %>
-          <input type="text" name="<%= attrName %>" value='<%= (attrValue != null ? attrValue : "") %>' <%= readonly %>>
+          <input type="text" name="<%= attrName %>" value='<%= avalue %>' <%= readonly %>>
 
 <%
          }




More information about the jboss-cvs-commits mailing list