熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> Java編程 >> Java開源技術 >> 正文

Struts開發問題集錦

2022-06-13   來源: Java開源技術 

  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 />


From:http://tw.wingwit.com/Article/program/Java/ky/201311/28493.html
  • 上一篇文章:

  • 下一篇文章:
  • 推薦文章
    Copyright © 2005-2022 電腦知識網 Computer Knowledge   All rights reserved.