Hi there,
I have an action which is configured to use the paramsPrepareParams
interceptor.
Basically the action is:
public class UserAdminAction implements Preparable {
// user is an interface, prepare() assign an implementation to the field
private User user;
private String username;
public void prepare() throws Exception {
user = StringUtils.isEmpty(username) ? mgr.createUser("new
user") : mgr.findByUsername(username);
//...
}
// getters for user, username
// setter for username, ...
}
In the first parameters run the user is null, which is fine.
But Struts tries to create a new one due to some parameters of user
properties. This not successful because it's an interface. I don't have
a setter for user anyway.
How can I switch of the automatic creation of fields in the
(parameters?) interceptor?
Thanks a lot for any hints,
Joachim
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]