0

Netbeans IDE v7.1 + Struts 2/XWorkプラグインをStruts2.2.3ライブラリおよびGlassfishServerv3で使用しています http://plugins.netbeans.org/plugin/39218

ここからStruts2-Jqueryプラグインも統合しました:GoogleCodeのプラグ インページ

ダウンロードしたファイルは次のとおりです。struts2-jquery-plugin-3.3.0.jar

まず、JAR/フォルダライブラリとしてプロジェクトに追加しました。

次に、次の構造でサンプルコードをJSPページにコピーしました。

            <%-- 
                Document   : calendarDemo
                Created on : 18-abr-2012, 17:48:08
                Author     : David32
            --%>

            <%@ taglib prefix="s" uri="/struts-tags"%>
            <%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
            <html>
              <head>
                <sj:head locale="es" jquerytheme="lightness"/>
                <title>Datepicker Demo</title>
              </head>
              <body>
                <s:form id="form" theme="xhtml">
                  <sj:datepicker id="date0" name="date0" label="With Button Panel" showButtonPanel="true"/>
                  <sj:datepicker id="date1" name="date1" label="Change Month and Year" changeMonth="true" changeYear="true"/>
                  <sj:datepicker id="date2" name="date2" label="Custom Button Text" showOn="both" buttonText="Select a Date"/>
                  <sj:datepicker id="date3" name="date3" label="Show only on Button Click" showOn="button"/>
                  <sj:datepicker id="date4" name="date4" label="Text after selection" appendText=" (dd.MM.yy)" displayFormat="dd.MM.yy"/>
                  <sj:datepicker id="date5" name="date5" label="With fast slideDown Animation" showAnim="slideDown" duration="fast"/>
                  <sj:datepicker id="date6" name="date6" label="With slow fadeIn Animation" showAnim="fadeIn" showOptions="{direction: 'up' }" duration="slow" />
                  <sj:datepicker id="date7" name="date7" label="Show 3 Months" numberOfMonths="3"/>
                  <sj:datepicker id="date8" name="date8" label="Show Month Array" numberOfMonths="[2,3]"/>
                  <sj:datepicker id="date9" name="date9" label="Show Years only from 2008 until 2012" yearRange="2008:2012" changeYear="true"/>
                  <sj:datepicker id="date10" name="date10" label="Button Only" buttonImageOnly="true"/>
                  <sj:datepicker id="date11" name="date11" label="Without Button" showOn="focus"/>
                  <sj:datepicker id="date12" name="date12" label="With Close Event" onClose="onClose"/>
                </s:form>
              </body>
            </html>

web.xmlで構成されているスタートページはもちろん[b]calendars/ calendarDemo.jsp[/b]です。

Datepickerタグが正しく検出およびチェックされるため、Netbeansはエラーを検出しません。一方、デプロイされた後は、次の通知を含むエラー500ページのみが表示されます。

            org.apache.jasper.JasperException: The Struts dispatcher cannot be found.  This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has passed through its servlet filter, which initializes the Struts dispatcher needed for this tag. - [unknown location]

このプラグインを構成するために私が欠けているものがあるかどうか誰かが知っていますか?どんな助けでも大いに感謝されます!

この現在の投稿はすでに長すぎるため、例外ログ全体を別の投稿に喜んで貼り付けることができます。

4

1 に答える 1