struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan Ewing <natew...@yahoo.com>
Subject Validation Problems
Date Wed, 02 Jul 2003 16:09:08 GMT
I'm trying to set up struts validation (using the validate() function in the
actionForm) and I'm getting a few problems.

First, as soon as I open the form it shows the validation errors. It doesn't
wait until I fill out the form. Is there a way to prevent this?

Second if I fill out the form correctly (and hence there would be no validation
errors) I get a null pointer exception on the:
org.apache.struts.taglib.html.ErrorsTag.doStartTag(ErrorsTag.java:239)
tag.

Here is my struts-config for this item

<!-- Edit the User Form -->
<action path="/User"
type="com.mysite.FormAction"
scope="request"
name="User"
input="show"
validate="true">
<forward name="show" path="/userForm.jsp"/>
</action>

Any ideas?

Thanks

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


Mime
View raw message