Java Mailing List Archive

http://www.junlu.com/

Google
Google
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
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
Validating array in S1

Validating array in S1

2007-11-05       - By Pavel Sapozhnikov

 Back
Reply:     1     2     3  

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)

©2008 junlu.com - Jax Systems, LLC, U.S.A.