  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | Validating array in S1 | Validating array in S1 2007-11-05 - By Pavel Sapozhnikov
Back Ok honestly I think we're missing the point here. I need to somehow reference the count of CHECKED CHECKBOXES and yes I have looked at struts 1 validator guide and I didn't exactly see an example of that unless I am blind or something or other or maybe I don't see what you see in which case if you guys could point me in the right direction that would be greatly appreciated.
On 11/5/07, Martin Gainty <mgainty@(protected)> wrote: > > http://java.sun.com/j2se/1.5.0/docs/api/java/util/ArrayList.html > Construct ArrayList passing the existing List (a subinterface of a > Collection) as a param to the constructor > then getArray method will return your [] > > M-- > -- -- Original Message -- -- > From: "Pavel Sapozhnikov" <pavel.sapozhnikov@(protected)> > To: "Struts Users Mailing List" <user@(protected)> > Sent: Monday, November 05, 2007 7:47 AM > Subject: Re: Validating array in S1 > > > > But isn't this [] index notation for arrays only? I am using a List. > > > > On 11/5/07, Paul Benedict <pbenedict@(protected)> wrote: > > > > > > Look at the Struts user guide. It does support the index [] notation. > > > > > > Paul > > > > > > On 11/3/07, Pavel Sapozhnikov <pavel.sapozhnikov@(protected)> wrote: > > > > > > > > Hi guys so I have a question I have a List in a form each entry in > the > > > > List > > > > contains a text box and two check boxes and that is indexed in the > form > > > > like > > > > I am using indexed properties. Anyway so I am trying to validate one > of > > > > the > > > > check boxes I want to say that there has to be EXACTLY ONE checked > check > > > > box. I did this using custom validation it took me 1 min time but I > was > > > > wondering if something like this is possible in validation.xmlthanks. > > > > > > > > -- > > > > Pavel Sapozhnikov > > > > xFact, Inc > > > > pavel@(protected) > > > > > > > > > > > > > > > -- > > Pavel Sapozhnikov > > xFact, Inc > > pavel@(protected) > > > >
-- Pavel Sapozhnikov xFact, Inc pavel@(protected)
|
|
 |