perfsonar-dev - perfsonar: r4377 - branches/WebAdmin
Subject: perfsonar development work
List archive
- From:
- To:
- Subject: perfsonar: r4377 - branches/WebAdmin
- Date: Fri, 22 Aug 2008 04:28:19 -0400
Author: rodriguez
Date: 2008-08-22 04:28:19 -0400 (Fri, 22 Aug 2008)
New Revision: 4377
Modified:
branches/WebAdmin/testdepl.jsp
Log:
Remove hardcoded URLs. Now it gets it from the context
Modified: branches/WebAdmin/testdepl.jsp
===================================================================
--- branches/WebAdmin/testdepl.jsp 2008-08-21 17:16:12 UTC (rev 4376)
+++ branches/WebAdmin/testdepl.jsp 2008-08-22 08:28:19 UTC (rev 4377)
@@ -25,16 +25,18 @@
rootPath = sc.getRealPath("/");;
if( (parm=request.getParameter("testit")) != null &&
parm.equals("true") )
{
+ String requestURL =
request.getRequestURL().toString();
+ String requestURI = request.getRequestURI();
+ String baseURL = requestURL.substring(0,
requestURL.indexOf(requestURI)) + "/";
-
String
- endpoint = "http://127.0.0.1:8080/" +
perfSONARWebAdmin.admin.service.soapclient.SoapClient.
+ endpoint = baseURL +
perfSONARWebAdmin.admin.service.soapclient.SoapClient.
guessWebServiceUrl(rootPath) , /* this path */
filein = rootPath +
"/WEB-INF/samples/requests/EchoRequest.xml",
fileout= rootPath +
"/WEB-INF/samples/responses/EchoResponse.xml";
int ret = 0;
- if( endpoint.equals("http://127.0.0.1:8080/") ==
false )
+ if( endpoint.equals(baseURL) == false )
{
// out.println("<br/><br/>Root path:" +
(new java.io.File(rootPath)).getCanonicalPath() );
- perfsonar: r4377 - branches/WebAdmin, svnlog, 08/22/2008
Archive powered by MHonArc 2.6.16.