; From: Michael Olszynski [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, December 20, 2002 2:24 AM
> To: Struts Users Mailing List
> Subject: Re: beanutils.populate with formbeans and vectors
>
> Hi Richard
>
> you have following methods in your Action form (see below)
>
";
> }
> }
>
>
>
> In the JSP page
>
> property="myItems" id="myObject">
> in iterate /> />
>
>
> The output:
> in iterate John Doe 1 Main St.
> in iterate Jane Doe 2 Main St.
>
>
> Hope that helps,
>
IL PROTECTED]>
Sent: Thursday, December 19, 2002 10:03 PM
Subject: Re: beanutils.populate with formbeans and vectors
> Michael,
> This code works:
>
> TestActionForm.java
> ---
> package com.test;
>
> import java.util.*;
> import org.apache.struts.a
gt;
>
>
> --
> Fehlerfreie Software wirkt weniger komplex und
> diskreditiert damit den
> Entwickler!
> - Original Message -
> From: "Richard Yee" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List"
> <[EMAIL PROTECTED]>
ecember 19, 2002 7:16 PM
Subject: Re: beanutils.populate with formbeans and vectors
> Michael,
> How are you accessing the indexed property in the JSP?
>
> -Richard
>
> --- Michael Olszynski <[EMAIL PROTECTED]> wrote:
> > Hi Richard,
> >
> > thanks again fo
et.service(HttpServlet.java:853)
> at
>
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
> atcher.java:684)
> at
>
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationD
> ispatcher.java:575)
> at
>
org.apache.catalina.cor
e.ApplicationDispatcher.include(ApplicationDis
> patcher.java:498)
> at
> org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary
> .java:820)
> at
> org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.jav
> --
> Fehlerfreie Softwa
ct: Re: beanutils.populate with formbeans and vectors
> Michael,
> You need to put the methods that I sent in the
> FormBean class and not your Vector subclass. You
> really don't need to subclass the Vector.
>
>
> ex.
>
> public class MyForm extends ActionForm
> {
>
Michael,
You need to put the methods that I sent in the
FormBean class and not your Vector subclass. You
really don't need to subclass the Vector.
ex.
public class MyForm extends ActionForm
{
private Vector myFoos = new Vector();
/**
* getter for indexed property in myFoos
*/
public
9 matches
Mail list logo