Frank/Musachy,
   
  tks for your help, after i change OnSubmit to lower case, it works. But when 
i try to test html:javascript, give me more erros, is html:javascript only used 
for validor only, and can not used as regular javascript for include?
   
  tks in advance
   
  john
   
  The error message:
   
  Error: missing } in XML expression
Source File: /source.js
Line: 4, Column: 20
Source Code:
    alert("pls try");
   
   
  source.js
   
  <head>
  <script language="javascript">
  function showme() {
  alert("pls try");
  return false;
  }
  </script>
  </head>
   
  Search.jsp
   
  <head>
  <html:javascript src="source.js" />
  </head>
  <%@ taglib uri="/html" prefix="html" %>
  <%@ taglib uri="/bean" prefix="bean" %>
  <html:form action="/partsearchinput" onsubmit="return showme()">
  <table>
  <tr><td><bean:message key="label.search.part"/>:</td>
  <td><html:text property="part"/></td></tr>
  <tr><td><html:submit/></td></tr>
  </table>
  </html:form>

       
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.

Reply via email to