struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Heidy Gutiérrez Guzmán" <heidyg...@gmail.com>
Subject Validate a multiple html:select with validator framework
Date Thu, 28 Sep 2006 20:15:33 GMT
I have a multiple  html:select  and i need  to validate it with validator
framework.

The attribute in the ActionForm is an array of strings.
private String[] subtemas= new String[]{}

The validation that i'm using is required.This validation works with others
form fields

This is the code of html:select in jsp page:

<html:select  property="subtemas"  multiple="true" >
        <html:options collection="collectionSubtemas" property="id"
labelProperty="nombre" />
</htmlelect>

Thanks

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message