• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Errors are not getting displayed on JSP when DynaValidatorActionForm is used.

Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
here is my struts-config.xml

<form-bean name="ManageEditInfoForm" type="org.apache.struts.validator.DynaValidatorActionForm">
<form-property name="firstname" type="java.lang.String" initial=""/>
<form-property name="lastname" type="java.lang.String" initial=""/>
<form-property name="username" type="java.lang.String" initial=""/>
<form-property name="role" type="java.lang.String[]" initial=""/>



<forward name="noinfo" path="/pages/ManageNewUser.jsp" />
<forward name="success" path="/pages/manusers.do" />
<forward name="login" path="/pages/LoginForm.jsp" />
<forward name="error" path="/pages/Error.jsp" />


the validation.xml

<form name="/pages/mannewuser">
property="firstname" depends="required,mask">
<arg0 key="loginform.firstname"/>
<var-value>^[a-z A-Z]*$</var-value>
property="lastname" depends="required,mask">
<arg0 key="loginform.lastname"/>
<var-value>^[a-z A-Z]*$</var-value>
property="username" depends="required,mask">
<arg0 key="loginform.username"/>
<var-value>^[a-z A-Z]*$</var-value>
property="role" depends="requiredArray">
<arg0 key="loginform.role"/>

In ManageNewUser.jsp i have <html:errors/> tag

Errors get display fine if i use ValidatorForm.
I am not understanding where i am doing wrong.
If any further details are needed,Please let me know.
I'll post them too.

i am using
struts 1.1

Thanks in advance
Just let me do the talking. Ahem ... so ... you see ... we have this tiny ad...
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic