English 中文(简体)
1. 将Stuts2-Jquery Plugin日期picker与Netbeans混为一谈
原标题:Runtime error when integrating Struts2-Jquery Plugin Datepicker with Netbeans 7.1

I use Netbeans IDE v7.1 + Struts 2/XWork plugin with Struts 2.2.3 Libraries and Glassfish Server v3 http://plugins.netbeans.org/plugin/39218

I have also integrated Struts2-Jquery plugin from here: Plugin Page at Google Code

下载的档案是:Struts2-jquery-plugin-3.3.0。

首先,我把它作为JAR/Folder图书馆加入该项目。

接下来,我把示范守则抄录在一份联合项目网页上,其结构如下:

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

网上配置的首页当然是[b]calendars/calendarDemo.jsp[/b]。

Netbeans doesn t detect any errors, as the Datepicker tag is correctly detected and checked. On the other hand, after getting deployed it gives only an Error 500 Page with the following notice:

            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]

没有人知道,我是否失踪了,以混淆这一gin? 页: 1

我很高兴地将整个例外记录在另一个员额中,因为这个员额已经太长了。

最佳回答

用户@Umesh Awasthi评论说,这是一个已知的问题:plugin

工作将降级为原第3.2.1版。

问题回答

暂无回答




相关问题
Netbeans CVS - existing repo - existing working copy

I m using Netbeans to develop with Drupal. I m trying to let Netbeans get drupal core and modules from the repository on drupal.org to my local working copy. Problem is: I already have a working ...

Java Library and Class Path Problems

Quick personal background: I was hired a few months ago as the sole .NET developer (C#) by a company whose other devs are all php devs. A week into the job I was told they wanted to switch to Java ...

Privileged operations in netbeans mobility

I m writing a Java ME app that will use privileged operations such as messaging. By default the user is prompted to confirm each of these operations, but I would like to run it as a background ...

Running unit tests on both windows and linux

Is there a way, a method, to be able to effectively run unit tests (phpunit) on both linux and windows? I need to do this because some parts of the system is only available under linux, but i do want ...

Dependency bundle (jar-files/sources/API docs) in Eclipse

I m developing various in-house extensions for JIRA, the issue tracker we use. So far I worked with Netbeans and everything worked like a charm. However, now I need to switch to Eclipse and I m ...

热门标签