
How to create Time Picker in Struts 2 ?

Solution Please do the following changes 1. index.jsp (Please add the given code in index.jsp) <ul> <li><a href="roseindia/requiredFieldValidatorError.action">RequiredFieldValidator Example</a></li> </ul> 2. struts.xml (Add the following code) <action name="requiredFieldValidatorError"> <result>/pages/chatQuestion/requiredFieldValidatorError.jsp</result> </action> <action name="requiredFieldValidatorError1" class="net.roseindia.requiredFieldValidatorAction"> <result name="input">/pages/chatQuestion/requiredFieldValidatorError.jsp</result> <result name="error">/pages/chatQuestion/requiredFieldValidatorError.jsp</result> <result name="success">/pages/chatQuestion/requiredFieldValidatorSuccess.jsp</result> </action> 3. timePicker.jsp(Add the following code) <%@ taglib prefix="s" uri="/struts-tags" %> <html> <head> <title>Struts 2 Time Picker Example!</title> <link href="<s:url value="/css/main.css"/>" rel="stylesheet" type="text/css"/> <s:head theme="ajax" /> </head> <body> <s:form name="timeform" method="POST"> <s:datetimepicker label="Time" name="time" type="time" displayFormat="HH:mm:ss" required="true" onchange="false"/> </s:form> </body> </html> Please follow the above instructions to get the solutions of your time picker problem in struts 2. Regards Vinod

please let me know how to get your mentioned value.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.