Javatpoint Logo

why date picker tag of struts2 isn't working?

By: tejas2*** On: Sun Dec 28 22:14:06 IST 2014     Question Reputation0 Answer Reputation0 Quiz Belt Series Points0  0Blank User
//This is my header jsp..
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s" %>
<%@taglib uri="/struts-dojo-tags" prefix="sx" %>
<!DOCTYPE html>
<html>
<head>
<s:head/>
<sx:head/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="'<% request.getContextPath();%>'/css/bootstrap-theme.css">
<link rel="stylesheet" type="text/css" href="'<% request.getContextPath();%>'/css/bootstrap-theme.min.css">
<link rel="stylesheet" type="text/css" href="'<% request.getContextPath();%>'/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="'<% request.getContextPath();%>'/css/bootstrap.min.css">

<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="'<% request.getContextPath();%>'/css/bootstrap.min.css">

<!-- Optional theme -->
<link rel="stylesheet" href="'<% request.getContextPath();%>'/css/bootstrap-theme.min.css">

<!-- Latest compiled and minified JavaScript -->
<script src="'<% request.getContextPath();%>'/js/bootstrap.min.js"></script>

<title>LMS</title>
</head>
<body>

//This is my footer jsp..
</body>
</html>

//This is my member.jsp file..
<%@include file="../header and footers/header.jsp" %>
<%@include file="../pages/home.jsp" %>
<s:form action="Member" method="post">
<table>
<tr>
<td><s:textfield name="m_strFirstName" label="First Name"/></td>
</tr>

<tr>
<td><s:textfield name="m_strMiddleName" label="Middle Name"/></td>
</tr>

<tr>
<td><s:textfield name="m_strLastName" label="Last Name"/></td>
</tr>

<tr>
<td><s:radio name="m_strGender" list="{'male','female'}" label="Gender"/></td>
</tr>

<tr>
<td><s:textfield name="m_strAddress" label="Address"/></td>
</tr>

<tr>
<td><s:textfield name="m_strContactNo" label="Contact No"/></td>
</tr>

<tr>
<td><s:textfield name="m_strFees" label="Fees"/></td>
</tr>

<tr>
<td><s:textfield name="m_strDuration" label="Duration"/></td>
</tr>

<tr>
<td><sx:datetimepicker name="m_dateAdmissionDate" label="Admission Date" displayFormat="dd-MM-yyyy"/></td>
<sx:datetimepicker name="m_dateAdmissionDate" displayFormat="dd-MM-yyyy"/>
</tr>

<tr>
<td><s:submit value="Add"/></td>
</tr>

</table>


</s:form>

<%@include file="../header and footers/footer.jsp" %>

there is no error on output...but date picker isn't arriving..
Please let me know what is my mistake in this code..
Up0Down

 
why cant you use Jquery as it is single line use along with struts2Image Created0Down

By: [email protected] On: Mon Dec 29 10:57:12 IST 2014 Question Reputation0 Answer Reputation0 Belt Series Points0 0User Image
Are You Satisfied :0Yes0No