Could not load class Interceptor/Myinterceptor Perhaps it exists but certain dependencies are not available? interceptor
解决缺少logjjar
当你的action处理类继承ActionSupport时
public class Reg extends ActionSupport {
private String username;
private String mymsg;
private String password;
private String password;
private Date birthday;
public String execute() throws Exception {}
form表单的action一定加上action<s:form id=id action=Interceptor/regaction>
否则出现
type Status report
message /Test/xInterceptor/regjsp
description The requested resource (/Test/xInterceptor/regjsp) is not available错误
在strutsde 以前版本都是用<s:datepicker>标签来获取时间后可以用strutsdojoplugin里的<sx:datetimepicker>标签获取时间
strutsdojopluginjar引入到自己的项目中
jsp中加入如下内容
<%@ page language=java pageEncoding=UTF%>
<%@ taglib prefix=s uri=/ strutstags %>
<%@ taglib prefix=sx uri=/strutsdojotags %>
<head>中加入下列
<head>
<s:head theme=xhtml/>
<sx:head parseContent=true/>
</head>
页面中使用
<sx:datetimepicker name=birthday lable=请求时间 displayFormat=yyMMdd />