Hi All,

I'm attempting to use the Validation framework to validate a Dynaform,
and it doesn't seem to be working. I've done a bit of googling, but
haven't been able to dig up anything definitive about validating
dynaforms. Now, I'm looking for your collective help.

Running the following code should produce an error when I submit the
form with a blank field. But it seems to run through the code in my
SearchAction just as it would if validation had been successful. I
suspect that the validation of the dynaform just isn't happening.

My code snippets follow. Any Ideas?

Eric Rank
www.lo-fi.net

___The form:___

<form-bean name="searchForm"
        type="org.apache.struts.validator.DynaValidatorActionForm">
        <form-property name="searchString" type="java.lang.String" />
</form-bean>


___The Action:___

<action
                path="/searchResults"
                type="myactions.SearchAction"
                name="searchForm"
                input="/WEB-INF/jsp/search.jsp"
                validate="true"
                >
        <forward name="results" path="/WEB-INF/jsp/searchResults.jsp" />
</action>

___validation.xml___

<formset>
        <form name="dealerSearchForm">
                <field property="searchString" depends="required">
                        <arg name="searchString" />
                </field>
        </form>
</formset>

___The jsp___


<html:errors />
<html:form action="searchResults" method="get">
<p>Search by Dealer ID or Dealer Name</p>
<p><html:text name="dealerSearchForm" property="searchString"/></p>
<p><html:submit value="Search" /></p>
</html:form>

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

Reply via email to