ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject svn commit: r154960 - in webservices/axis/trunk/java/modules: core/src/html/upload.jsp samples/src/jsp/interop.jsp
Date Wed, 23 Feb 2005 05:20:33 GMT
Author: ajith
Date: Tue Feb 22 21:20:31 2005
New Revision: 154960

URL: http://svn.apache.org/viewcvs?view=rev&rev=154960
Log:
Trying to fix a file seperator character bug in the upload JSP

Modified:
    webservices/axis/trunk/java/modules/core/src/html/upload.jsp
    webservices/axis/trunk/java/modules/samples/src/jsp/interop.jsp

Modified: webservices/axis/trunk/java/modules/core/src/html/upload.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/html/upload.jsp?view=diff&r1=154959&r2=154960
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/html/upload.jsp (original)
+++ webservices/axis/trunk/java/modules/core/src/html/upload.jsp Tue Feb 22 21:20:31 2005
@@ -77,7 +77,12 @@
                 String file = new String(dataBytes);
                 String saveFile = file.substring(file.indexOf("filename=\"") + 10);
                 saveFile = saveFile.substring(0, saveFile.indexOf("\n"));
-                saveFile = saveFile.substring(saveFile.lastIndexOf("\\") + 1,saveFile.indexOf("\""));
+                if (saveFile.indexOf("\\")<0){
+                     saveFile = saveFile.substring(saveFile.lastIndexOf("/") + 1,saveFile.indexOf("\""));
+                }else{
+                     saveFile = saveFile.substring(saveFile.lastIndexOf("\\") + 1,saveFile.indexOf("\""));
+                }
+
                 saveFile = saveFile.toLowerCase();
 
                 if (!saveFile.endsWith(".jar")){

Modified: webservices/axis/trunk/java/modules/samples/src/jsp/interop.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/src/jsp/interop.jsp?view=diff&r1=154959&r2=154960
==============================================================================
--- webservices/axis/trunk/java/modules/samples/src/jsp/interop.jsp (original)
+++ webservices/axis/trunk/java/modules/samples/src/jsp/interop.jsp Tue Feb 22 21:20:31 2005
@@ -67,7 +67,6 @@
                   for(int i =0 ; i< values.length ; i++){
                       String s = (String)request.getParameter("arryValue" + (i+1));
                       values[i] =s==null?"":s;
-//                      values[i] = "ss" +i;
                   }
                   interopBean.setArraValue(values);
                   break;
@@ -112,7 +111,7 @@
           <tr>
           <td></td>
           <td>
-              <input type="radio" name="type" value="<%=Constants.InteropConstants.ECHO_STRING_SERVICE%>"
 onclick="displayStringRow();hideStringArrayRow();hideStructRow();"  checked>Echo String</input>
+              <input type="radio"  name="type" value="<%=Constants.InteropConstants.ECHO_STRING_SERVICE%>"
 onclick="displayStringRow();hideStringArrayRow();hideStructRow();"  checked>Echo String</input>
 
           </td>
           </tr>
@@ -240,7 +239,7 @@
              </tr>
              <tr>
              <td >
-              <textarea cols="55"  name="SOAPRequest" rows="20"><%= (interopBean.getRequest()==null)
? "" : interopBean.getRequest() %>
+              <textarea cols="55" disabled="true"  name="SOAPRequest" rows="20"><%=
(interopBean.getRequest()==null) ? "" : interopBean.getRequest() %>
 </textarea>
              </td>
              </tr>
@@ -251,7 +250,7 @@
               <td><b>Response SOAP Message</b></td>
              </tr>
              <tr>
-             <td ><textarea cols="55" name="SOAPResponse" rows="20" ><%= (interopBean.getResponse()==null)
? "" : interopBean.getResponse() %>
+             <td ><textarea cols="55"  disabled="true" name="SOAPResponse" rows="20"
><%= (interopBean.getResponse()==null) ? "" : interopBean.getResponse() %>
 </textarea></td>
              </tr>
           </table>



Mime
View raw message