struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nadia Maclaren <na...@intelligenz.co.nz>
Subject problems with html:javascript
Date Tue, 21 Dec 2004 22:09:42 GMT
Hi,
I have a a html:javascript on the jsp pages. It is throwing a null 
exception, and I can't work out why. It was working quite happily a few 
months ago. But we have just revisited it and it doesn't want to work 
any more.

Its happening on all our pages that have client-side validation. Any 
ideas will be greatly appreciated.

The jsp page contains (when remove this line the page works fine, 
including server-side validation):
<html:javascript formName="EFTSReportForm" />

the validation-administrationModule.xml contains:
<form name = "EFTSReportForm">
           <field property="ReportYear" depends="required, integer, 
intRange">
                <arg0 key="field.adminSite.workspace.reports.reportYear" 
resource="true"/>
                <arg1 name="intRange" key="${var:min}" resource="false"/>
                <arg2 name="intRange" key="${var:max}" resource="false"/>
                <var><var-name>min</var-name><var-value>0</var-value></var>
                
<var><var-name>max</var-name><var-value>4000</var-value></var>
            </field>
        </form>

the struts config file contains:
<action path="/eftsReport"
        
type="com.colts.ui.adminSite.workspace.reportModule.reports.EFTSReportProcess" 

        validate="false"
        name="EFTSReportForm">       
        <forward name="form_step1" path="/reports/EFTS.view"/>
        <forward name="RUN_REPORT" path="/reports/eftsReportAction.do"/>
    </action>

<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
   <set-property property="pathnames" 
value="/WEB-INF/validator-rules.xml,/WEB-INF/config/validation-adminstrationModule.xml"/>
 </plug-in>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message