Fix a link issue in the web console plugin.
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@807664 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/ipojo/manipulator/src/main/java/org/apache/felix/ipojo/manipulator/Pojoization.java b/ipojo/manipulator/src/main/java/org/apache/felix/ipojo/manipulator/Pojoization.java
index 90a1448..a8dd373 100644
--- a/ipojo/manipulator/src/main/java/org/apache/felix/ipojo/manipulator/Pojoization.java
+++ b/ipojo/manipulator/src/main/java/org/apache/felix/ipojo/manipulator/Pojoization.java
@@ -661,6 +661,7 @@
String root = m_dir.getAbsolutePath();
String path = absolutePath.substring(root.length() + 1);
return path.replace('\\', '/'); // To support Windows systems, the \ are replaced by /
+ //return path.replace('/', File.separatorChar);
}
/**
diff --git a/ipojo/webconsole-plugin/src/main/java/org/apache/felix/org/apache/felix/ipojo/webconsole/IPOJOServlet.java b/ipojo/webconsole-plugin/src/main/java/org/apache/felix/org/apache/felix/ipojo/webconsole/IPOJOServlet.java
index d6d3b2a..0820899 100644
--- a/ipojo/webconsole-plugin/src/main/java/org/apache/felix/org/apache/felix/ipojo/webconsole/IPOJOServlet.java
+++ b/ipojo/webconsole-plugin/src/main/java/org/apache/felix/org/apache/felix/ipojo/webconsole/IPOJOServlet.java
@@ -209,7 +209,7 @@
+ getInvalidCount() + " invalid instances."
+ "</div></div>");
// Button Line
- writer.write("<form action=\"ipojo\" method=\"get\">"
+ writer.write("<form action=\"iPOJO\" method=\"get\">"
+ "<div class=\"fullwidth\">"
+ "<div class=\"buttons\">"
+ "<button style=\"margin-left: 30px;\" name=\"" + INSTANCE + "\" value=\"all\" type=\"submit\">Instances</button>"
@@ -244,7 +244,7 @@
}
// Button Line
- writer.write("<form action=\"ipojo\" method=\"get\">"
+ writer.write("<form action=\"iPOJO\" method=\"get\">"
+ "<div class=\"fullwidth\">"
+ "<div class=\"buttons\">"
+ "<button style=\"margin-left: 30px;\" name=\"" + INSTANCE + "\" value=\"all\" type=\"submit\">Instances</button>"
@@ -416,7 +416,7 @@
String n = id.getComponentDescription().getName();
for (Factory f : m_factories) { // Cannot be null, an empty list is returned.
if (f.getName().equals(n)) {
- return "<a href=\"ipojo?factory=" + n + "\">" + n + "</a>";
+ return "<a href=\"iPOJO?factory=" + n + "\">" + n + "</a>";
}
}
@@ -477,7 +477,7 @@
* @return the HTML link targetting the instance detail
*/
private String getInstanceLink(String name) {
- return "<a href=\"ipojo?instance=" + name + "\">" + name + "</a>";
+ return "<a href=\"iPOJO?instance=" + name + "\">" + name + "</a>";
}
/**
@@ -528,7 +528,7 @@
if (ref.getProperty("instance.name") == null) {
s += ref.getProperty(Constants.SERVICE_ID);
} else {
- s += "<a href=\"ipojo?instance="
+ s += "<a href=\"iPOJO?instance="
+ ref.getProperty("instance.name") + "\">"
+ ref.getProperty("instance.name") + " (" + ref.getProperty(Constants.SERVICE_ID) + ")</a>";
}
@@ -645,7 +645,7 @@
String bundle = factory.getBundleContext().getBundle().getSymbolicName()
+ " (" + factory.getBundleContext().getBundle().getBundleId() + ")";
pw.write("<tr>"
- + "<td><a href=\"ipojo?factory=" + name + "\">"
+ + "<td><a href=\"iPOJO?factory=" + name + "\">"
+ (version == null ? name : name + " (" + version + ")")
+ "</a></td>"
+ "<td>" + bundle + "</td>"