struts2异常现象

public class LoginAction extends ActionSupport {

private UsersEntity usersEntity;

//get,set方法略

public String execute() throws Exception {
    return SUCCESS;
}

}

如果我不加private UsersEntity usersEntity;及set,get 方法,就正常,
加上了,就报错,No result defined for action LoginAction and result input
怎么回事啊?
我整合了sitemesh

[color=blue][b]UsersEntity 中的字段的类型都有什么?

你向LoginAction中传入的参数是什么?

应该是通过HTTP传入的参数,在转换成UsersEntity中的属性时,产生了转换异常![/b][/color]

楼上回答的不错,呵呵,是你在传入参数,转换成UsersEntity 时出的问题

[b]
你有没有设置 interceptor ?[/b]

它支持很多类型的,它没执行到 LoginAction,是因为转换是在它之前执行的

你的错误提示不是太精确,可以把 struts.devMode 打开,可以看到详细点的信息

[b]Action中是否提供了UsersEntity 的Get Set方法?

UsersEntity 是否提供了 属性 的Get Set方法?[/b]

会不会是 sitemesh 过滤器的原因

你加个 log4j 你助于你找到更详细的信息