我想通过写一个action,然后配置struts的xml文件,跳转到一个普通的html页面,里面就纯文本和图片,但是不知道怎么弄,代码如下:
action类代码
public class ZhishiAction extends BaseAction{
public String knowledge(){
return SUCCESS;
}
}
struts的配置
/pages/knowledge/index.html
在struts配置文件里面
/pages/knowledge/index.html
/WEB-INF/jsp/common/error.jsp
在struts配置文件里面
/WEB-INF/jsp/common/error.jsp
/WEB-INF/jsp/common/error.jsp
/pages/knowledge/index.html/WEB-INF/jsp/common/error.jsp
我也贴不出来,xml是这样写的,然后报错说
Unable to instantiate Action, zhishiAction, defined for 'knowledge' in namespace '/backend/knowledge'zhishiAction
class 要交路径
class里路径怎么写啊,求详细答案
就是你这个action 所在的本地的路径 class="oa.web.gift.GiftInfoListAction",跟这种差不多
行了,谢谢大神,可惜我没金币,不然就赏你了