Best,
Mlati
Best,
Mlati
Best,
Mlati
Best,
Mlati
pooja par wrote:Hi All,
I want to use datepicker in my app.
My JSP:
<!DOCTYPE link PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
<%@taglib prefix="sj" uri="/struts-jquery-tags"%>
<html>
<head>
<link rel="STYLESHEET" type="text/css" href="codebase/dhtmlx.css">
<script src="codebase/dhtmlx.js" type="text/javascript"></script>
<script src="JS/DateValidation.js" type="text/javascript"></script>
<sx:head />
<sj:head />
</head>
<div style="width=100%;" align="center" >
<div ><h2>Add Manager Interest</h2></div>
<s:form action="CreateManagerInterest" namespace="/" method="POST" theme="simple" name="ManagerInterestBean">
<table width="50%" >
<tr>
<td align="left"><s:label value= "Manager*:"/></td>
<td align="left">
<s:url id="managerslist" action="ManagersAutoCompleter" />
<sx:autocompleter name="mgrIntrstBean.manager" href="%{managerslist}" loadOnTextChange="true" loadMinimumCount="1"
cssClass="dhxlist_txt_textarea" dropdownHeight="150px" forceValidOption="true" required="true"/>
</td>
</tr>
<tr>
<td align="left"><s:label value= "Trader:"/></td>
<td align="left">
<s:url id="traderslist" action="TradersAutoCompleter" />
<sx:autocompleter name="mgrIntrstBean.trader" href="%{traderslist}" loadOnTextChange="true" loadMinimumCount="1"
cssClass="dhxlist_txt_textarea" dropdownHeight="150px" forceValidOption="true"/>
</td>
</tr>
<tr>
<td align="left"><s:label value= "Good Until:"/></td>
<td align="left">
<sj:datepicker name="mgrIntrstBean.expiry" displayFormat="MM/dd/yyyy"/>
</td>
</tr>
<tr>
<td align="center" colspan="2"><s:submit value="Submit" align="center" /></td>
</tr>
</table>
</s:form>
</div>
</body>
</html>
I downloaded the jar struts2-jquery-plugin-2.5.3.jar
when I run the app I get the below error
org.apache.jasper.JasperException: /interestInputScreen.jsp(162,8) The sj:datepicker tag declares that it accepts dynamic attributes but does not implement the required interface
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148)
at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:802)
at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1530)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2411)
at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:865)
at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1530)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2411)
at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2417)
at org.apache.jasper.compiler.Node$Root.accept(Node.java:495)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
at org.apache.jasper.compiler.Validator.validateExDirectives(Validator.java:1763)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:198)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:347)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:327)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:326)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:416)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Unknown Source)
Please help me
Thanks
Best,
Mlati
pooja par wrote:Hi Samson,
Thank you soooooo.. much for the reply.
Issue got resolved
Thanks
Best,
Mlati
I wasn't selected to go to mars. This tiny ad got in ahead of me:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|