Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem in DynaValidationForm

 
Narasimha Raju Naidu
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi to all

i am not getting the parameter values whlie dispalying the errors. i am providing all my code here can any one help me regarding this



Form Bean class:URformBean.java


Action class:URAction.java



Form: urform.jsp



and
sucess page after sucessfully registered

struts-config.xml



validation.xml

[code]

<formset>
<form name="URForm">
<field
property="userName"
depends="required">
<arg0
name="required"
key="userName"
resourse="true"/>
</field>
<field
property="passOne"
depends="required">
<arg0
name="required"
key="passOne"
resourse="false"/>
</field>
<field
property="passTwo"
depends="required">
<arg0
name="required"
key="passTwo"
resourse="false"/>
</field>
<field
property="age"
depends="required,range">
<arg0
name="required"
key="age"
resourse="false"/>
<arg0
name="range"
key="age"
resourse="false"/>
<arg1
name="range"
key="${var:min}"
resourse="false"/>
<arg2
name="range"
key="${var:max}"
resourse="false"/>
<var>
<var-name>min</var-name>
<var-value>25</var-value>
</var>
<var>
<var-name>max</var-name>
<var-value>50</var-value>
</var>
</field>
<field
property="email"
depends="required,email">
<arg0
name="required"
key="email"
resourse="false"/>
<arg0
name="email"
key="email"
resurse="false"/>
</field>
</form>
</formset>



all the above are different source code and im not getting any errors or exceptions
can any one tell where i am doing mistakes


regards
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic