On Fri, Jul 31, 2009 at 3:03 PM, Pogue, Doug<[email protected]> wrote:
> The main documentation wiki for ftplet has the following xml for configuring
> a ftplet:
>
> <ftplets>
> <ftplet name="ftplet1">
> <beans:bean class="org.apache.ftpserver.examples.MyFtplet">
†> <beans:property name="foo" value="123" />
> </beans:bean>
> </ftplet>
> </ftplets>
>
> How do you get the value for the “foo” property in the Ftplet class?
You need to create a Javabean property on your Ftplet, that is, create
getter and setter methods. In this case:
public int getFoo() { // implementation }
public void setFoo(int foo) { // implementation }
/niklas