初次使用MyEclipse8.0出了点棘手的问题,请教各位!
帮忙看看这问题怎么解决,谢了。
这是错误提示:The type ActionSupport cannot be a superinterface of HelloWorldAction; a superinterface must be an interface以下是代码部分:
package org.nick.struts2.ch02.action;import com.opensymphony.xwork2.ActionSupport;public class HelloWorldAction implements ActionSupport {
private String message;
private String name;
public String getMessage() {
return message;
}
public String getName() {
name = "nick";
return SUCCESS;
}
public String execute() {
message = "Hello World!";
return SUCCESS;
}
}
帮忙看看这问题怎么解决,谢了。
这是错误提示:The type ActionSupport cannot be a superinterface of HelloWorldAction; a superinterface must be an interface以下是代码部分:
package org.nick.struts2.ch02.action;import com.opensymphony.xwork2.ActionSupport;public class HelloWorldAction implements ActionSupport {
private String message;
private String name;
public String getMessage() {
return message;
}
public String getName() {
name = "nick";
return SUCCESS;
}
public String execute() {
message = "Hello World!";
return SUCCESS;
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货