commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Hogan" ...@mikehogan.net>
Subject [jelly] passing more than one value with the same name to a Jelly bean?
Date Sat, 23 Nov 2002 10:43:55 GMT
Hi,

Is there any way I can pass more than one value with the same name to a
Jelly bean?  I could imagine something like:

public class JellyBean {
    private Collection params = null;

    public JellyBean() {
        params = new ArrayList();
    }

    public void run() {
        for(Iterator i=params.iterator();i.hasNext();) {
            System.out.println("param " + i.next());
        }
    }

    public void addParam(Object o) {
        params.add(o);
    }
}

and then:

<define:taglib uri="myTagLib">
        <define:jellybean name="foo" className="JellyBean"/>
    </define:taglib>

    <my:foo param="x" param="y" param="z"/>

Is there any way to do this kind of thing?

Thanks,
Mike.


--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message