You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2008/03/21 14:14:14 UTC
svn commit: r639624 -
/webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/jsp/demoMTOM.jsp
Author: dims
Date: Fri Mar 21 06:13:58 2008
New Revision: 639624
URL: http://svn.apache.org/viewvc?rev=639624&view=rev
Log:
make sure the user enters a file name
Modified:
webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/jsp/demoMTOM.jsp
Modified: webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/jsp/demoMTOM.jsp
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/jsp/demoMTOM.jsp?rev=639624&r1=639623&r2=639624&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/jsp/demoMTOM.jsp (original)
+++ webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/jsp/demoMTOM.jsp Fri Mar 21 06:13:58 2008
@@ -25,6 +25,19 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>JAX-WS Web Services MTOM Sample</title>
+ <script language="JavaScript" type="text/javascript">
+ <!--
+ function checkform(form)
+ {
+ if (form.filedef.value == "") {
+ alert("Please enter a Source Filename");
+ form.filedef.focus();
+ return false;
+ }
+ return true;
+ }
+ //-->
+ </script>
</head>
<body>
<P align="center"><B><FONT size="+2">JAX-WS Web Services MTOM Sample
@@ -32,7 +45,7 @@
<H3><B> <U>Message Options</U></B></H3>
-<FORM name="mtomdemo" method="POST" action="/jaxws-samples/demoMTOM" enctype="multipart/form-data">
+<FORM name="mtomdemo" method="POST" action="/jaxws-samples/demoMTOM" onsubmit="return checkform(this);" enctype="multipart/form-data">
<TABLE border="0" cellpadding="0" cellspacing="1">
<TBODY>
<TR>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org