Index: /home/albertil/Prog/WorkSpaces/juddiSVN/juddi/webapp/console/controller.jsp
===================================================================
--- /home/albertil/Prog/WorkSpaces/juddiSVN/juddi/webapp/console/controller.jsp	(revision 410213)
+++ /home/albertil/Prog/WorkSpaces/juddiSVN/juddi/webapp/console/controller.jsp	(working copy)
@@ -12,9 +12,18 @@
   // Access the UDDI registry on localhost
   final String HTTP_PROXY_HOST = null;
   final String HTTP_PROXY_PORT = null;
-  final URL INQUIRY_URL = new URL("http://localhost:8080/juddi/inquiry");
-  final URL PUBLISH_URL = new URL("http://localhost:8080/juddi/publish");
-  final URL ADMIN_URL =   new URL("http://localhost:8080/juddi/admin");
+  final URL INQUIRY_URL = new URL("http://localhost:" 
+		  + request.getServerPort() 
+		  + request.getContextPath() 
+		  + "/inquiry");
+  final URL PUBLISH_URL = new URL("http://localhost:" 
+		  + request.getServerPort() 
+		  + request.getContextPath() 
+		  + "/publish");
+  final URL ADMIN_URL =   new URL("http://localhost:" 
+		  + request.getServerPort() 
+		  + request.getContextPath() 
+		  + "/admin");
   
   // Access a remote UDDI registry
   //final String HTTP_PROXY_HOST = "proxy";
