Hi Arron,
In struts-config.xml I named
form-bean name=sanForm
type=com.kp.struts.form.action.beans.ActionForm/
actionpath=/test
type=com.kp.struts.form.action.LogonAction
name=sanForm
scope=session
Instead of nested:write try bean:write with the nested property...
bean:write name=sanForm property=account.account_no /
If that returns the error, it's all in the setup of the bean etc.
Because it's a no getter method error, I'd be checking over the
methods and their signatures, making sure
] nested:nest and nested:write
Hi Friends,
I have a FormBean AccountForm and javabean Account
public class AccountForm{
private Account account;
// setter and getter method for account
}
public class Account{
private String account_no;
// setter and getter for account_no
Hi Friends,
I have a FormBean AccountForm and javabean Account
public class AccountForm{
private Account account;
// setter and getter method for account
}
public class Account{
private String account_no;
// setter and getter for account_no
}
Then I have the following test.jsp
Nothing is outwardly obvious... but it won't be in the nested tags as
it's forming the property correctly (account.account_no).
One way to test, is to use the normal bean:write tag using your named
FormBean and the full nested property.
eg:
bean:write name=beanName property=account.account_no
5 matches
Mail list logo