Struts 1.1的Indexed Properties 值得关注

04-03-03 banq

有这个例子:

class B {

  String name;
  String value;

  void setName();
  void setXXX

  ....

}
<p class="indent">

B是一个普通类,但是在ActionForm A中,包含B的集合类:

class A extends ActionForm{

Collection bs = new ArrayList(); //是B的集合类。
}


那么在Jsp页面如何能对B的name和value参数进行输入,就需要indexed功能,网址:





http://jakarta.apache.org/struts/faqs/indexedprops.html