aspose file tools*
The moose likes Struts and the fly likes Does validator can't work with html:options tag?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Does validator can Watch "Does validator can New topic
Author

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

alex han
Ranch Hand

Joined: Dec 13, 2002
Posts: 46
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 :
//DeptLDAction.java

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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Does validator can't work with html:options tag??