• Post Reply Bookmark Topic Watch Topic
  • New Topic

Does validator can't work with html:options tag??  RSS feed

alex han
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i use struts validator framework to validate my jsp,and in my jsp,i use html ptions to display some record.
work flow is : click url deptadmin.do?action=precreate ------->go to DeptLDAction ---> get some record and store them to request -- >go to a deptcreate.jsp --> submit new record..
The trouble is :if i add
in my validation.xml,when i submit record from deptcreate.jsp, i get some error like

but if i remove form definition from validation.xml,the error disapper and i can submit new record,but i also can't validate my jsp!
my action is :

my form bean is :

my javabean is:

my struts-config is

my jsp is:

Does struts validator can't work with html ptions tags???
[ February 17, 2004: Message edited by: Xiao Han ]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!