Hi All

I facing problem in Validator - Struts 1.1 .

I am having two fields and checking for the empty fields.While submitting the form 
with empty fields,
I am getting the following error in Tomcat 4.0.3

This is the error  that it is throwing in the Browser......

java.lang.NullPointerException
        at java.util.Hashtable.put(Hashtable.java:380)
        at 
org.apache.jasper.runtime.PageContextImpl.setAttribute(PageContextImpl.java:229)
        at org.apache.struts.taglib.html.MessagesTag.doStartTag(MessagesTag.java:250)
        at org.apache.jsp.login$jsp._jspService(login$jsp.java:185)

This is my validation.xml

<form-validation>
   <formset>
      <form    name="loginForm">
         <field    property="userId"
                     depends="required">
                     <arg0 key="prompt.userId"  />
         </field>
         <field    property="password"
                    depends="required">
                     <arg0 key="prompt.userId"  />
                     
        </field>
    </form> 
 </formset>
 </form-validation>


Regards
M.Saravanan


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

Reply via email to