Your page uses custom Javascript for form validation, not the Struts validation framework, so it doesn't appear that the problem is Struts related.

L

bhba wrote:
HI,
        I am new to the World of Struts..i got an querie can any one help
regarding this..
        My question is Form validations using struts is not working with
Mozilla, but working fine  with IE..
        I am sending my code also..wht's wrong with my i don't know?


      Thanks in Advance


[CODE]
<!-- [START] PUT FILE DETAILS AND VERSION HERE
        X53 - Counter Party Contact Maintenance
        Author : Bhanu Balaji.G
        Functionality : Counter Party Contact Maintenance
Version : v 1.0.0 [END] PUT FILE DETAILS AND VERSION HERE -->

<!-- [START] DO NOT REMOVE -->

<%@ include file="../banker-common/taglibs.jsp"%>
<%@ page import="microlink.bankerdesktop.web.module.xs.randGen"%>
<%randGen rg=new randGen();%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html:html>
<html:base/>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title></title>
        <link rel="stylesheet" href="../../css/common.css" type="text/css">
        <link rel="stylesheet" href="../../css/tabs.css" type="text/css">
        <script language="javascript" src="../../js/tabs.js"></script>
        <script language="javascript" src="../../js/module.js"></script>
<!-- [END] DO NOT REMOVE -->

<!-- [START] PUT CUSTOM JAVASCRIPT HERE -->

        <script language="javascript">
var dept = new keybEdit('abcdefghijklmnopqurstuvwxyz
','Alphabet input only.');
            var cpaddr1 = new
keybEdit('abcdefghijklmnopqurstuvwxyz01234567890 ,-#.:','Alpha-numeric input
& special characters only.');
            var cpaddr2 = new
keybEdit('abcdefghijklmnopqurstuvwxyz01234567890 ,-#.:','Alpha-numeric input
& special characters only.');
            var cpaddr3 = new
keybEdit('abcdefghijklmnopqurstuvwxyz01234567890 ,-#.:','Alpha-numeric input
& special characters only.');
            var cpaddr4 = new
keybEdit('abcdefghijklmnopqurstuvwxyz01234567890 ,-#.:','Alpha-numeric input
& special characters only.');
            var city    = new keybEdit('abcdefghijklmnopqurstuvwxyz
','Alphabet input only.');
            var tel_of  = new keybEdit('01234567890','Numeric input only.');
var tel_hm = new keybEdit('01234567890','Numeric input only.'); var dealercd= new keybEdit('01234567890','Numeric input only.'); var faxno = new keybEdit('01234567890','Numeric input only.'); var postcd = new keybEdit('01234567890','Numeric input only.'); var tel_ha = new keybEdit('01234567890','Numeric input only.'); var actno = new keybEdit('01234567890','Numeric input only.'); void function setEvents() {
            document.all.dept.onkeypress      = new
Function('editKeyBoard(this,dept)');
            document.all.cpaddr1.onkeypress   = new
Function('editKeyBoard(this,cpaddr1)');
            document.all.cpaddr2.onkeypress   = new
Function('editKeyBoard(this,cpaddr2)');
            document.all.cpaddr3.onkeypress   = new
Function('editKeyBoard(this,cpaddr3)');
            document.all.cpaddr4.onkeypress  = new
Function('editKeyBoard(this,cpaddr4 )');
            document.all.city.onkeypress      = new
Function('editKeyBoard(this,city)');
            document.all.tel_of.onkeypress    = new
Function('editKeyBoard(this,tel_of )');
            document.all.tel_hm.onkeypress    = new
Function('editKeyBoard(this,tel_hm )');
            document.all.email.onkeypress    = new
Function('editKeyBoard(this,email )');
            document.all.dealercd.onkeypress = new
Function('editKeyBoard(this,dealercd )');
            document.all.faxno.onkeypress    = new
Function('editKeyBoard(this,faxno )');
            document.all.postcd.onkeypress   = new
Function('editKeyBoard(this,postcd )');
            document.all.tel_ha.onkeypress   = new
Function('editKeyBoard(this,tel_ha )');
            document.all.actno.onkeypress   = new
Function('editKeyBoard(this, actno)');
}
           function validate()
          {
                var email=document.all.email.value;
                if (! isValidEmail(email))
                {
                        alert("Please enter a valid email address");
                        return true;
                        document.all.email.focus();
                 }
                        return true;
}
        </script>

<!-- [END] PUT CUSTOM JAVASCRIPT HERE -->

</head>

<body onLoad="javascript:setEvents()">
<html:form action="/X53" method="post">

  <!-- [START] SAFE TO EDIT -->
  <input type="hidden" name="ejfno" value="<%=rg.myMethod ()%>"/>

  <table width="100%"  border="0" cellpadding="2" cellspacing="2">
    <tr>
      <td  class="tableheader" colspan="6">TS X53 Counter Party Contact
Maintenance</td>
    </tr>
    <tr>
      <td  class="redtext" colspan="6"><html:errors/></td>
    </tr>
    <tr>
      <td width="7%" class="labeltext">Transaction Code</td>
      <td width="1%"  class="blanktext">:</td>
      <td colspan="4" class="blanktext">
         <html:text property="transactioncode" styleClass="textfield"
size="3" maxlength="30" value="X53"/>
         <html:select property="dscpt" styleClass="dropdown"
value="${X53.dscpt}">
         <html:option value="001">001 - CounterParty Contact </html:option>
        </html:select>
     </td>
    </tr>
    <tr>
      <td width="7%" class="labeltext">Account No</td>
      <td width="1%"  class="blanktext">:</td>
      <td colspan="4" class="blanktext">
      <html:text property="actno" styleClass="textfield" size="30"
maxlength="30" value="${X53.actno}"
onblur="getRimData(document.forms[0],'/ILICTreasury/banker-web/X53.do',
this,'IX53')"/>
     <!--   <html:select property="actno" styleClass="dropdown"
value="${X53.actno}">
            </html:select> -->
      </td>
    </tr>
    <tr>
      <td width="7%" class="labeltext">Contact Person</td>
      <td width="1%"  class="blanktext">:</td>
      <td colspan="4" class="blanktext">
        <html:select property="conttitle " styleClass="dropdown"
value="${X53.conttitle}" >
        <file:GetFileProperty file="config/ClientXML/chlist.xml"
xcode="/chlist/TITLE/*/@CODE" xpath="/chlist/TITLE/*/@LABEL" type="option"/> </html:select>
        <html:text property="contname" styleClass="textfield"  size="50"
maxlength="60" value="${X53.contname}"/> </td>
    </tr>
    <tr>
      <td width="7%" class="labeltext">Department</td>
      <td width="1%"  class="blanktext">:</td>
      <td colspan="4" class="blanktext">
        <html:text property="dept" styleClass="textfield" size="30"
maxlength="30" value="${X53.dept}"/>
      </td>
    </tr>
    <tr>
      <td width="7%" class="labeltext">Address1</td>
      <td width="1%"  class="blanktext">:</td>
      <td colspan="4" class="blanktext">
        <html:text property="cpaddr1" styleClass="textfield" size="50"
maxlength="50" value="${X53.cpaddr1}"/>
      </td>
    </tr>
    <tr>
      <td width="7%" class="labeltext">Address2</td>
      <td width="1%"  class="blanktext">:</td>
      <td colspan="4" class="blanktext">
        <html:text property="cpaddr2" styleClass="textfield" size="50"
maxlength="50" value="${X53.cpaddr2}"/>
      </td>
    </tr>
    <tr>
      <td width="7%" class="labeltext">Address3</td>
      <td width="1%"  class="blanktext">:</td>
      <td colspan="4" class="blanktext">
        <html:text property="cpaddr3" styleClass="textfield" size="50"
maxlength="50" value="${X53.cpaddr3}"/>
      </td>
    </tr>
    <tr>
      <td width="7%" class="labeltext">Address4</td>
      <td width="1%"  class="blanktext">:</td>
      <td colspan="4" class="blanktext">
        <html:text property="cpaddr4" styleClass="textfield" size="50"
maxlength="50" value="${X53.cpaddr4}"/>
      </td>
    </tr>
    <tr>
      <td width="7%" class="labeltext">Country</td>
      <td width="1%"  class="blanktext">:</td>
      <td colspan="4" class="blanktext">
        <html:select property="countrycd" styleClass="dropdown" value="">
        <file:GetFileProperty file="config/ClientXML/chlist.xml"
xcode="/chlist/COUNTRYCODE/*/@CODE" xpath="/chlist/COUNTRYCODE/*/@LABEL"
type="option"/> </html:select>
      </td>
    </tr>
    <tr>
      <td width="7%" class="labeltext">City</td>
      <td width="1%"  class="blanktext">:</td>
      <td width="39%" class="blanktext">
        <html:text property="city" styleClass="textfield" size="30"
maxlength="30" value="${X53.city  }"/>
      </td>
      <td width="8%" class="labeltext">Post Code</td>
      <td width="1%" class="blanktext">:</td>
      <td colspan="4" class="blanktext">
        <html:text property="postcd" styleClass="textfield" size="30"
maxlength="30" value="${X53.postcd }"/>      </td>
    </tr>
    <tr>
      <td width="7%" class="labeltext">Tel Office</td>
      <td width="1%"  class="blanktext">:</td>
      <td class="blanktext">
        <html:text property="tel_of" styleClass="textfield" size="30"
maxlength="30" value="${X53.tel_of }"/>
      </td>
       <td class="labeltext">Mobile No</td>
       <td class="blanktext">:</td>
       <td colspan="4" class="blanktext">
         <html:text property="tel_ha" styleClass="textfield" size="30"
maxlength="30" value="${X53.tel_ha }"/>      </td>
    </tr>
    <tr>
      <td width="7%" class="labeltext">Tel Home</td>
      <td width="1%"  class="blanktext">:</td>
      <td class="blanktext">
        <html:text property="tel_hm" styleClass="textfield" size="30"
maxlength="30" value="${X53.tel_hm  }"/>
      </td>
      <td class="labeltext">Fax No</td>
      <td class="blanktext">:</td>
      <td colspan="4" class="blanktext">
        <html:text property="faxno" styleClass="textfield" size="30"
maxlength="30" value="${X53.faxno}"/>      </td>
    </tr>
    <tr>
      <td width="7%" class="labeltext">Email</td>
      <td width="1%"  class="blanktext">:</td>
      <td colspan="4" class="blanktext">
        <html:text property="email" styleClass="textfield" size="30"
maxlength="30" value="${X53.email}"onblur="validate()"/>
      </td>
    </tr>
    <tr>
      <td width="7%" class="labeltext">Dealer Code</td>
      <td width="1%"  class="blanktext">:</td>
      <td colspan="4" class="blanktext">
        <html:text property="dealercd" styleClass="textfield" size="30"
maxlength="30" value="${X53.dealercd }"/>
      </td>
    </tr>
    <tr>
      <td colspan="6">&nbsp;</td>
    </tr>
    <tr align="center">
      <td colspan="6">
        <html:button property="submitbutton" styleClass="button"
value="SUBMIT" onclick="doSubmit(document.forms[0],
'/ILICTreasury/banker-web/X53.do','UX53')"/>
        <html:reset property="resetbutton" styleClass="button"
value="CLEAR"/>
      </td>
    </tr>
  </table>

  <!-- [END] SAFE TO EDIT -->

</html:form>
</body>
</html:html>


[/CODE]

Regards
BHANU



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to