You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by de...@apache.org on 2006/04/20 13:16:17 UTC

svn commit: r395562 [2/2] - in /webservices/axis2/trunk/java: ./ modules/core/ modules/core/src/org/apache/axis2/ modules/core/src/org/apache/axis2/deployment/ modules/core/src/org/apache/axis2/transport/http/ modules/saaj/test/org/apache/axis2/saaj/in...

Modified: webservices/axis2/trunk/java/modules/webapp/conf/web.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/webapp/conf/web.xml?rev=395562&r1=395561&r2=395562&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/webapp/conf/web.xml (original)
+++ webservices/axis2/trunk/java/modules/webapp/conf/web.xml Thu Apr 20 04:16:13 2006
@@ -50,104 +50,24 @@
     </servlet-mapping>
 
     <servlet-mapping>
-        <servlet-name>AxisAdminServlet</servlet-name>
-        <url-pattern>/listServices</url-pattern>
+        <servlet-name>AxisServlet</servlet-name>
+        <url-pattern>/services/*</url-pattern>
     </servlet-mapping>
 
     <servlet-mapping>
         <servlet-name>AxisAdminServlet</servlet-name>
-        <url-pattern>/listService</url-pattern>
+        <url-pattern>/admin/*</url-pattern>
     </servlet-mapping>
 
-    <servlet-mapping>
-        <servlet-name>AxisAdminServlet</servlet-name>
-        <url-pattern>/listModules</url-pattern>
-    </servlet-mapping>
 
-    <servlet-mapping>
-        <servlet-name>AxisAdminServlet</servlet-name>
-        <url-pattern>/globalModules</url-pattern>
-    </servlet-mapping>
-    <servlet-mapping>
-        <servlet-name>AxisAdminServlet</servlet-name>
-        <url-pattern>/listPhases</url-pattern>
-    </servlet-mapping>
-    <servlet-mapping>
-        <servlet-name>AxisAdminServlet</servlet-name>
-        <url-pattern>/engagingglobally</url-pattern>
-    </servlet-mapping>
-    <servlet-mapping>
-        <servlet-name>AxisAdminServlet</servlet-name>
-        <url-pattern>/engageToService</url-pattern>
-    </servlet-mapping>
-    <servlet-mapping>
-        <servlet-name>AxisAdminServlet</servlet-name>
-        <url-pattern>/adminlogin</url-pattern>
-    </servlet-mapping>
-    <servlet-mapping>
-        <servlet-name>AxisAdminServlet</servlet-name>
-        <url-pattern>/viewGlobalHandlers</url-pattern>
-    </servlet-mapping>
-    <servlet-mapping>
-        <servlet-name>AxisAdminServlet</servlet-name>
-        <url-pattern>/selectService</url-pattern>
-    </servlet-mapping>
-    <servlet-mapping>
-        <servlet-name>AxisAdminServlet</servlet-name>
-        <url-pattern>/viewServiceHandlers</url-pattern>
-    </servlet-mapping>
-    <servlet-mapping>
-        <servlet-name>AxisAdminServlet</servlet-name>
-        <url-pattern>/listoperation</url-pattern>
-    </servlet-mapping>
-    <servlet-mapping>
-        <servlet-name>AxisAdminServlet</servlet-name>
-        <url-pattern>/listOperations</url-pattern>
-    </servlet-mapping>
-    <servlet-mapping>
-        <servlet-name>AxisServlet</servlet-name>
-        <url-pattern>/services/*</url-pattern>
-    </servlet-mapping>
-    <servlet-mapping>
-        <servlet-name>AxisAdminServlet</servlet-name>
-        <url-pattern>/servicedit</url-pattern>
-    </servlet-mapping>
-    <servlet-mapping>
-        <servlet-name>AxisAdminServlet</servlet-name>
-        <url-pattern>/inActivateService</url-pattern>
-    </servlet-mapping>
-    <servlet-mapping>
-        <servlet-name>AxisAdminServlet</servlet-name>
-        <url-pattern>/activateService</url-pattern>
-    </servlet-mapping>
-    <servlet-mapping>
-        <servlet-name>AxisAdminServlet</servlet-name>
-        <url-pattern>/editServicepara</url-pattern>
-    </servlet-mapping>
-    <servlet-mapping>
-        <servlet-name>AxisAdminServlet</servlet-name>
-        <url-pattern>/selectServiceParaEdit</url-pattern>
-    </servlet-mapping>
-    <servlet-mapping>
-        <servlet-name>AxisAdminServlet</servlet-name>
-        <url-pattern>/listServciceGroups</url-pattern>
-    </servlet-mapping>
-    <servlet-mapping>
-        <servlet-name>AxisAdminServlet</servlet-name>
-        <url-pattern>/engageToServiceGroup</url-pattern>
-    </servlet-mapping>
-    <servlet-mapping>
-        <servlet-name>AxisAdminServlet</servlet-name>
-        <url-pattern>/listContexts</url-pattern>
-    </servlet-mapping>
-    <servlet-mapping>
-        <servlet-name>AxisAdminServlet</servlet-name>
-        <url-pattern>/logout</url-pattern>
-    </servlet-mapping>
+   <welcome-file-list>
+      <welcome-file>/axis2-web/index.jsp</welcome-file>
+    </welcome-file-list>
+
     <error-page>
         <exception-type>
             org.apache.axis2.transport.http.server.AdminAppException</exception-type>
-        <location>/Error/AuthError.html</location>
+        <location>/axis2-web/Error/AuthError.html</location>
     </error-page>
 
     <!--error-page>

Modified: webservices/axis2/trunk/java/modules/webapp/engagingglobally.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/webapp/engagingglobally.jsp?rev=395562&r1=395561&r2=395562&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/webapp/engagingglobally.jsp (original)
+++ webservices/axis2/trunk/java/modules/webapp/engagingglobally.jsp Thu Apr 20 04:16:13 2006
@@ -34,7 +34,7 @@
     and click on the "Engage" button. Any module that needs to place handlers into the pre-dispatch
     phase needs to be engaged globally.</p>
 
-<form method="get" name="selectModuleForm" action="engagingglobally">
+<form method="get" name="selectModuleForm" action="admin/engagingglobally">
     <table border="0" width="100%" cellspacing="1" cellpadding="1">
         <tr>
             <td width="15%">Select a Module :</td>
@@ -66,4 +66,4 @@
 <p><font color="blue"><%=status%></font></p>
 <%
     } %>
-<jsp:include page="include/adminfooter.jsp"/>
\ No newline at end of file
+<jsp:include page="include/adminfooter.jsp"/>

Modified: webservices/axis2/trunk/java/modules/webapp/engagingtoanoperation.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/webapp/engagingtoanoperation.jsp?rev=395562&r1=395561&r2=395562&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/webapp/engagingtoanoperation.jsp (original)
+++ webservices/axis2/trunk/java/modules/webapp/engagingtoanoperation.jsp Thu Apr 20 04:16:13 2006
@@ -10,7 +10,7 @@
 %>
 <h1>Engage Module for an Operation</h1>
 <p>To engage a module for a axisOperation, first select the module you want to engage and then select the axisOperation you like the module to be engaged on and click "Engage".</p>
-<form method="get" name="selectModuleForm" action="listOperations">
+<form method="get" name="selectModuleForm" action="admin/listOperations">
 <table border="0" width="100%" cellspacing="1" cellpadding="1">
     <tr>
         <td>
@@ -95,4 +95,4 @@
            </tr>
       </table>
    </form>
-<jsp:include page="include/adminfooter.jsp"></jsp:include>
\ No newline at end of file
+<jsp:include page="include/adminfooter.jsp"></jsp:include>

Modified: webservices/axis2/trunk/java/modules/webapp/engagingtoaservice.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/webapp/engagingtoaservice.jsp?rev=395562&r1=395561&r2=395562&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/webapp/engagingtoaservice.jsp (original)
+++ webservices/axis2/trunk/java/modules/webapp/engagingtoaservice.jsp Thu Apr 20 04:16:13 2006
@@ -10,7 +10,7 @@
 %>
 <h1>Engage Module for a Service</h1>
 <p>To engage a module for a axisService, first select the module you want to engage and then select the axisService you like the module to be engaged on and click "Engage".</p>
-<form method="get" name="selectModuleForm" action="engageToService">
+<form method="get" name="selectModuleForm" action="admin/engageToService">
 <table border="0" width="100%" cellspacing="1" cellpadding="1">
     <tr>
         <td>

Modified: webservices/axis2/trunk/java/modules/webapp/include/adminheader.inc
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/webapp/include/adminheader.inc?rev=395562&r1=395561&r2=395562&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/webapp/include/adminheader.inc (original)
+++ webservices/axis2/trunk/java/modules/webapp/include/adminheader.inc Thu Apr 20 04:16:13 2006
@@ -1,7 +1,7 @@
 <table width="100%">
   <tr>
-    <td align="left"><img src="images/asf-logo.gif"/><h1>Axis 2</h1></td>
-    <td align="right"><img src="images/axis.jpg"/></td>
+    <td align="left"><img src="axis2-web/images/asf-logo.gif"/><h1>Axis 2</h1></td>
+    <td align="right"><img src="axis2-web/images/axis.jpg"/></td>
     </tr>
     <tr>
     <td>.</td>

Modified: webservices/axis2/trunk/java/modules/webapp/include/adminheader.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/webapp/include/adminheader.jsp?rev=395562&r1=395561&r2=395562&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/webapp/include/adminheader.jsp (original)
+++ webservices/axis2/trunk/java/modules/webapp/include/adminheader.jsp Thu Apr 20 04:16:13 2006
@@ -1,26 +1,20 @@
-<%@ page import="org.apache.axis2.Constants"%>
 <%@ page contentType="text/html;charset=UTF-8" language="java" %>
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 <html>
 <head>
-	<title>Axis2 :: Administrations Page</title>
-	<link href="css/axis-style.css" rel="stylesheet" type="text/css"/>
-	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
+  <base href="<%= request.getScheme() %>://<%= request.getServerName() %>:<%= request.getServerPort()%><%= request.getContextPath() %>/" />
+	<title>Axis2 :: Administration Page</title>
+	<link href="axis2-web/css/axis-style.css" rel="stylesheet" type="text/css"/>
+  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
 </head>
 <body>
-<%
-      String status = (String)request.getSession().getAttribute(Constants.LOGGED);
-      if(status == null || (! status.equals("Yes"))) {
-          throw new Exception("Invalid logging");
-      }
-  %>
-   <jsp:include page="header.inc"></jsp:include>
+<jsp:include page="header.inc"></jsp:include>
 <table class="FULL_BLANK"><tr><td valign="top" width="20%">
    <jsp:include page="../LeftFrame.jsp"></jsp:include>
 </td>
 <td valign="top" align="left" width="80%">
 <table width="100%">
     <tr>
-   <td align="right" colspan="2"><a href="#" onclick="javaacript:history.back();">Back</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="logout">Log out</a></td>
+   <td align="right" colspan="2"><a href="#" onclick="javaacript:history.back();">Back</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="admin/logout">Log out</a></td>
    </tr>
 </table>

Modified: webservices/axis2/trunk/java/modules/webapp/include/header.inc
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/webapp/include/header.inc?rev=395562&r1=395561&r2=395562&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/webapp/include/header.inc (original)
+++ webservices/axis2/trunk/java/modules/webapp/include/header.inc Thu Apr 20 04:16:13 2006
@@ -3,9 +3,9 @@
 <tr><td>
 <table width="950px">
   <tr>
-    <td align="left"><img src="images/asf-logo.gif"/></td>
-    <td align="right"><img src="images/axis_l.jpg"/></td>
+    <td align="left"><img src="axis2-web/images/asf-logo.gif"/></td>
+    <td align="right"><img src="axis2-web/images/axis_l.jpg"/></td>
     </tr>
 </table>
 </td>
-<td>&nbsp;</td></tr></table>
\ No newline at end of file
+<td>&nbsp;</td></tr></table>

Modified: webservices/axis2/trunk/java/modules/webapp/include/link-footer.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/webapp/include/link-footer.jsp?rev=395562&r1=395561&r2=395562&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/webapp/include/link-footer.jsp (original)
+++ webservices/axis2/trunk/java/modules/webapp/include/link-footer.jsp Thu Apr 20 04:16:13 2006
@@ -2,7 +2,7 @@
 	<tr><td>
 		<table width="950px">
 			<tr>
-				<td align="right"><a href="index.jsp">Back Home</a>&nbsp;&nbsp;|&nbsp;&nbsp; <a href="#" onclick="javascript:history.go(0);">Refresh</a></td>
+				<td align="right"><a href="axis2-web/index.jsp">Back Home</a>&nbsp;&nbsp;|&nbsp;&nbsp; <a href="#" onclick="javascript:history.go(0);">Refresh</a></td>
 			</tr>
 		</table>
 	</td>

Modified: webservices/axis2/trunk/java/modules/webapp/index.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/webapp/index.jsp?rev=395562&r1=395561&r2=395562&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/webapp/index.jsp (original)
+++ webservices/axis2/trunk/java/modules/webapp/index.jsp Thu Apr 20 04:16:13 2006
@@ -26,8 +26,9 @@
  */
 %>
 <head>
-<title>Axis 2 - Home</title>
-<link href="css/axis-style.css" rel="stylesheet" type="text/css">
+  <base href="<%= request.getScheme() %>://<%= request.getServerName() %>:<%= request.getServerPort()%><%= request.getContextPath() %>/" />
+  <title>Axis 2 - Home</title>
+  <link href="axis2-web/css/axis-style.css" rel="stylesheet" type="text/css" />
 </head>
 <body>
         <jsp:include page="include/header.inc"></jsp:include>
@@ -38,11 +39,11 @@
         is properly working, we encourage you to click on the validate link.
         <br/>
         <ul>
-        <li><a href="listServices">Services</a>
+        <li><a href="services/listServices">Services</a>
         <br/>
         View lists of all the available services deployed in this server.
         </li>
-        <li><a href="HappyAxis.jsp">Validate</a>
+        <li><a href="axis2-web/HappyAxis.jsp">Validate</a>
         <br/>
         Check the system to see whether all the required libraries are in place 
 		and view view the system information.
@@ -51,11 +52,11 @@
         <br/>
         You can run Interoperability tests here
         </li>--%>
-        <li><a href="Login.jsp">Administration</a>
+        <li><a href="admin/">Administration</a>
         <br/>
 		Console for administering this Axis2 installation.
         </li>
         </ul>
         <jsp:include page="include/footer.inc"></jsp:include>
         </body>
-</html>
\ No newline at end of file
+</html>

Modified: webservices/axis2/trunk/java/modules/webapp/listGroupService.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/webapp/listGroupService.jsp?rev=395562&r1=395561&r2=395562&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/webapp/listGroupService.jsp (original)
+++ webservices/axis2/trunk/java/modules/webapp/listGroupService.jsp Thu Apr 20 04:16:13 2006
@@ -7,77 +7,84 @@
 <%@ page import="java.util.Iterator" %>
 <%@ page contentType="text/html;charset=UTF-8" language="java" %>
 <html>
-<head><title>List Services</title>
-    <link href="css/axis-style.css" rel="stylesheet" type="text/css">
+<head>
+  <base href="<%= request.getScheme() %>://<%= request.getServerName() %>:<%= request.getServerPort()%><%= request.getContextPath() %>/"/>
+  <title>List Services</title>
+  <link href="axis2-web/css/axis-style.css" rel="stylesheet" type="text/css" />
 </head>
+
 <body>
-<jsp:include page="include/adminheader.jsp"></jsp:include>
+<jsp:include page="include/adminheader.jsp">
+</jsp:include>
 <h1>Available services</h1>
-<%String IP = request.getRequestURL().toString();
-    int lastindex = IP.lastIndexOf('/');
-    IP = IP.substring(0, lastindex);
-    String prifix = IP + "/services/";
+<%
+  String IP = request.getRequestURL().toString();
+  int lastindex = IP.lastIndexOf('/');
+  IP = IP.substring(0, lastindex);
+  String prifix = IP + "/services/";
 %>
 <%
-    HashMap serviceMap = (HashMap) request.getSession().getAttribute(Constants.SERVICE_MAP);
-    String servicName = request.getParameter("serviceName");
-    AxisService axisService = (AxisService) serviceMap.get(servicName);
-    if (axisService != null) {
-        Iterator operations;
-        String serviceName ;
-        operations = axisService.getOperations();
-        serviceName = axisService.getName();
+  HashMap serviceMap = (HashMap) request.getSession().getAttribute(Constants.SERVICE_MAP);
+  String servicName = request.getParameter("serviceName");
+  AxisService axisService = (AxisService) serviceMap.get(servicName);
+  if (axisService != null) {
+    Iterator operations;
+    String serviceName;
+    operations = axisService.getOperations();
+    serviceName = axisService.getName();
 %><hr>
 
 <h2><font color="blue"><a href="<%=prifix + axisService.getName()%>?wsdl"><%=serviceName%></a>
 </font></h2>
-<font color="blue">Service EPR : <font color="black"><%=prifix + axisService.getName()%></font>
-    <h4>Service Description : <font color="black"><%=axisService.getServiceDescription()%></h4>
-    <i><font color="blue">Service Status : <%=axisService.isActive()?"Active":"InActive"%></font></i></br>
-    <%
-        Collection engagedModules = axisService.getEngagedModules();
-        String moduleName;
-        if (engagedModules.size() > 0) {
-    %>
-    <i>Engaged Modules for the axisService</i><ul>
-    <%
-        for (Iterator iteratorm = engagedModules.iterator(); iteratorm.hasNext();) {
-            AxisModule axisOperation = (AxisModule) iteratorm.next();
-            moduleName = axisOperation.getName().getLocalPart();
-    %><li><%=moduleName%></li>
-    <%
-        }%>
+<font color="blue">Service EPR :</font><font color="black"><%=prifix + axisService.getName()%></font>
+<h4>Service Description : <font color="black"><%=axisService.getServiceDescription()%></h4>
+<i><font color="blue">Service Status : <%=axisService.isActive() ? "Active" : "InActive"%></font></i><br/>
+<%
+  Collection engagedModules = axisService.getEngagedModules();
+  String moduleName;
+  if (engagedModules.size() > 0) {
+%>
+<i>Engaged Modules for the axisService</i><ul>
+  <%
+    for (Iterator iteratorm = engagedModules.iterator(); iteratorm.hasNext();) {
+      AxisModule axisOperation = (AxisModule) iteratorm.next();
+      moduleName = axisOperation.getName().getLocalPart();
+  %><li><%=moduleName%></li>
+  <%
+    }%>
 </ul>
-    <%}
-        if (operations.hasNext()) {
-    %><br><i>Available operations</i><%
+<%
+  }
+  if (operations.hasNext()) {
+%><br><i>Available operations</i><%
 } else {
 %><i> There are no operations specified</i><%
-    }
+  }
 %><ul><%
-    operations = axisService.getOperations();
-    while (operations.hasNext()) {
-        AxisOperation axisOperation = (AxisOperation) operations.next();
+  operations = axisService.getOperations();
+  while (operations.hasNext()) {
+    AxisOperation axisOperation = (AxisOperation) operations.next();
 %><li><%=axisOperation.getName().getLocalPart()%></li>
-    <%
-        engagedModules = axisOperation.getEngagedModules();
-        if (engagedModules.size() > 0) {
-    %>
-    <br><i>Engaged Modules for the Operation</i><ul>
-    <%
-        for (Iterator iterator2 = engagedModules.iterator(); iterator2.hasNext();) {
-            AxisModule moduleDecription = (AxisModule) iterator2.next();
-            moduleName = moduleDecription.getName().getLocalPart();
-    %><li><%=moduleName%></li><br><%
-    }
+  <%
+    engagedModules = axisOperation.getEngagedModules();
+    if (engagedModules.size() > 0) {
+  %>
+  <br><i>Engaged Modules for the Operation</i><ul>
+  <%
+    for (Iterator iterator2 = engagedModules.iterator(); iterator2.hasNext();) {
+      AxisModule moduleDecription = (AxisModule) iterator2.next();
+      moduleName = moduleDecription.getName().getLocalPart();
+  %><li><%=moduleName%></li><br><%
+  }
 %></ul><%
-        }
-
     }
+
+  }
 %></ul>
-    <%
-        }
-    %>
-    <jsp:include page="include/adminfooter.jsp"></jsp:include>
+<%
+  }
+%>
+<jsp:include page="include/adminfooter.jsp">
+</jsp:include>
 </body>
-</html>
\ No newline at end of file
+</html>

Modified: webservices/axis2/trunk/java/modules/webapp/listServices.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/webapp/listServices.jsp?rev=395562&r1=395561&r2=395562&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/webapp/listServices.jsp (original)
+++ webservices/axis2/trunk/java/modules/webapp/listServices.jsp Thu Apr 20 04:16:13 2006
@@ -25,18 +25,17 @@
 --%>
 <%@ page contentType="text/html;charset=UTF-8" language="java" %>
 <html>
+  <base href="<%= request.getScheme() %>://<%= request.getServerName() %>:<%= request.getServerPort()%><%= request.getContextPath() %>/" />
   <head><title>List Services</title>
-  <link href="css/axis-style.css" rel="stylesheet" type="text/css">
+  <link href="axis2-web/css/axis-style.css" rel="stylesheet" type="text/css" />
   </head>
   <body>
   <jsp:include page="include/header.inc"></jsp:include>
     <jsp:include page="include/link-footer.jsp"></jsp:include>
   <h1>Available services</h1>
-  <%String IP=request.getRequestURL().toString();
-        int lastindex = IP.lastIndexOf('/');
-        IP = IP.substring(0,lastindex);
-        String prifix = IP + "/services/";
-        String restprefix = IP + "/rest/";
+  <%    String host = request.getScheme() + "://" + request.getServerName() + ":" +  request.getServerPort() +  request.getContextPath();
+        String prifix = host + "/services/";
+        String restprefix = host + "/rest/";
     %>
      <%
         HashMap serviceMap = (HashMap)request.getSession().getAttribute(Constants.SERVICE_MAP);
@@ -54,8 +53,8 @@
             //operationsList = operations.values();
             serviceName = axisService.getName();
             %><h2><font color="blue"><a href="<%=prifix + axisService.getName()%>?wsdl"><%=serviceName%></a></font></h2>
-           <font color="blue">Service EPR : <font color="black"><%=prifix + axisService.getName()%></font><br>
-               <font color="blue">Service REST epr : <font color="black"><%=restprefix + axisService.getName()%></font>
+           <font color="blue">Service EPR : </font><font color="black"><%=prifix + axisService.getName()%></font><br>
+               <font color="blue">Service REST epr : </font><font color="black"><%=restprefix + axisService.getName()%></font>
            <h4>Service Description : <font color="black"><%=axisService.getServiceDescription()%></h4>
             <i><font color="blue">Service Status : <%=axisService.isActive()?"Active":"InActive"%></font></i><br>
                <%

Modified: webservices/axis2/trunk/java/modules/webapp/listSingleService.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/webapp/listSingleService.jsp?rev=395562&r1=395561&r2=395562&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/webapp/listSingleService.jsp (original)
+++ webservices/axis2/trunk/java/modules/webapp/listSingleService.jsp Thu Apr 20 04:16:13 2006
@@ -5,8 +5,10 @@
 <%@ page import="java.util.Iterator"%>
 <%@ page contentType="text/html;charset=UTF-8" language="java" %>
 <html>
-  <head><title>List Single service</title>
-  <link href="css/axis-style.css" rel="stylesheet" type="text/css">
+  <head>
+    <base href="<%= request.getScheme() %>://<%= request.getServerName() %>:<%= request.getServerPort()%><%= request.getContextPath() %>/" />
+    <title>List Single service</title>
+    <link href="axis2-web/css/axis-style.css" rel="stylesheet" type="text/css">
   </head>
   <body>
   <jsp:include page="include/header.inc"></jsp:include>
@@ -36,8 +38,8 @@
             //operationsList = operations.values();
           String  serviceName = axisService.getName();
             %><h2><font color="blue"><a href="<%=prifix + axisService.getName()%>?wsdl"><%=serviceName%></a></font></h2>
-           <font color="blue">Service EPR : <font color="black"><%=prifix + axisService.getName()%></font><br>
-               <font color="blue">Service REST epr : <font color="black"><%=restprefix + axisService.getName()%></font>
+           <font color="blue">Service EPR : </font><font color="black"><%=prifix + axisService.getName()%></font><br>
+               <font color="blue">Service REST epr :</font><font color="black"><%=restprefix + axisService.getName()%></font>
            <h4>Service Description : <font color="black"><%=axisService.getServiceDescription()%></h4>
            <i><font color="blue">Service Status : <%=axisService.isActive()?"Active":"InActive"%></font></i><br>
            <%
@@ -58,9 +60,7 @@
            <%
                     } else{
                            %>
-                <h3><font color="red" >No service found in this location</h3>
-                <jsp:include page="include/footer.inc"></jsp:include>
-                </body>
+                <h3><font color="red" >No service found in this location</font></h3>
  <%
                     }
 
@@ -68,4 +68,4 @@
         %>
 <jsp:include page="include/footer.inc"></jsp:include>
         </body>
-</html>
\ No newline at end of file
+</html>

Modified: webservices/axis2/trunk/java/modules/webapp/project.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/webapp/project.xml?rev=395562&r1=395561&r2=395562&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/webapp/project.xml (original)
+++ webservices/axis2/trunk/java/modules/webapp/project.xml Thu Apr 20 04:16:13 2006
@@ -60,14 +60,6 @@
             </properties>
         </dependency>
         <dependency>
-            <groupId>commons-fileupload</groupId>
-            <artifactId>commons-fileupload</artifactId>
-            <version>${commons.fileupload.version}</version>
-            <properties>
-                <module>true</module>
-            </properties>
-        </dependency>
-        <dependency>
             <groupId>ws-commons</groupId>
             <artifactId>XmlSchema</artifactId>
             <version>${XmlSchema.version}</version>

Modified: webservices/axis2/trunk/java/modules/webapp/upload.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/webapp/upload.jsp?rev=395562&r1=395561&r2=395562&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/webapp/upload.jsp (original)
+++ webservices/axis2/trunk/java/modules/webapp/upload.jsp Thu Apr 20 04:16:13 2006
@@ -29,78 +29,8 @@
     */
 %>
 
-<%!
-    public void jspInit() {
-        ServletContext context = this.getServletConfig().getServletContext();
-        ConfigurationContext configctx =
-                (ConfigurationContext) context.getAttribute(AxisServlet.CONFIGURATION_CONTEXT);
-        File repoDir = new File(configctx.getAxisConfiguration().getRepository().getFile());
-        File serviceDir = new File(repoDir, "services");
-
-        if (!serviceDir.exists()) {
-            serviceDir.mkdir();
-        }
-        deploymentDirectory = serviceDir;
-    }
-
-    protected static final String SUBMIT_NAME = "upload";
-    protected File deploymentDirectory = null;
-
-    protected void writeSuccessMessage(String fileName, JspWriter out) throws IOException {
-        out.print("File saved as " + fileName + "<br/>");
-    }
-
-    protected void writeUnsuccessMessage(String message, JspWriter out) throws IOException {
-        out.print("<font color=\"red\">The following error occurred <br/>" + message +
-                "</font><br/>"
-        );
-
-    }
-%>
 <jsp:include page="include/adminheader.jsp"></jsp:include>
 <h2>Upload a axisService jar file</h2>
-<%
-    boolean isMultipart = FileUpload.isMultipartContent(request);
-    if (isMultipart) {
-        try {
-            // Create a new file upload handler
-            DiskFileUpload upload = new DiskFileUpload();
-
-            List items = upload.parseRequest(request);
-
-            // Process the uploaded items
-            Iterator iter = items.iterator();
-            while (iter.hasNext()) {
-                FileItem item = (FileItem) iter.next();
-
-                if (!item.isFormField()) {
-
-                    String fileName = item.getName();
-                    String fileExtesion = fileName;
-                    fileExtesion = fileExtesion.toLowerCase();
-                    if (!(fileExtesion.endsWith(".jar") || fileExtesion.endsWith(".aar"))) {
-                        throw new Exception(" Wrong file type! ");
-                    }
-
-                    String fileNameOnly = "";
-                    if (fileName.indexOf("\\") < 0) {
-                        fileNameOnly = fileName.substring(fileName.lastIndexOf("/") + 1, fileName.length());
-                    } else {
-                        fileNameOnly = fileName.substring(fileName.lastIndexOf("\\") + 1, fileName.length());
-                    }
-
-
-                    File uploadedFile = new File(deploymentDirectory, fileNameOnly);
-                    item.write(uploadedFile);
-                    out.write("<font color=\"green\">File " + fileName + " successfully uploaded </font><br/><br/>");
-
-                }
-            }
-        } catch (Exception e) {
-            out.write(" <font color=\"red\">File upload failed! <br/>" + e.getMessage() + "</font><br/><br/>");
-        }
-    }
-%>
 
 <p>You can upload a packaged Axis 2 axisService using this page with two small
     steps.</p>
@@ -110,11 +40,19 @@
 
 <p>Simple as that!</p>
 
-<form method="post" name="Axis2upload" action="upload.jsp"
+<% if ("success".equals(request.getAttribute("status")) ) { %>
+ <font color="green">File <%= request.getAttribute("filename") %> successfully uploaded </font><br/><br/>
+<%
+  } else if ("failure".equals(request.getAttribute("status")) ){
+ %>
+ <font color="red">The following error occurred <br/> <%= request.getAttribute("cause") %> </font><br/>
+
+<% } %>
+<form method="post" name="Axis2upload" action="admin/upload"
       enctype="multipart/form-data">
     <table><tr><td>Service archive : </td><td>
         <input type="file" name="filename" size="50"/></td></tr>
-        <tr><td>&nbsp;</td><td><input name="<%=SUBMIT_NAME%>" type="submit"
+        <tr><td>&nbsp;</td><td><input name="upload" type="submit"
                                       value=" Upload "/></td></tr>
     </table>
 </form>