简体   繁体   English

如何在jsp中显示选定年份(年份)和月份(月份)中的所有日历日期?

[英]How can I display all the calendar dates in jsp, for a selected year in years dropdown and selected month in months dropdown?

I am having two dropdowns one is year drop-down which displays current year and 2 more years from the current year. 我有两个下拉菜单,一个是年份下拉菜单,显示当前年份,而从当前年份起还有2年。 and I am having months dropdown which displays all 12 months. 我有几个月下拉列表,显示所有12个月。 I want to display all calendar dates from 1st to 31st in horizontal for the user selected month in months dropdown and for the selected year in years dropdown in next jsp after clicking submit in selection page. 我要在选择页面中单击“提交”后,在下一个jsp中为用户选择的月份(月份)下拉菜单和所选年份(年份)下拉列表显示水平方向从1日到31日的所有日历日期。 Language used Java 使用的语言Java

Like Scary Wombat suggets you should give a try to a CSS framework which has a built-in calendar component. 吓人的袋熊建议一样,您应该尝试使用具有内置日历组件的CSS框架。

Here is a list of some of them : 这是其中一些的列表:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在所有jsp中显示下拉选择的值 - Display dropdown selected value in all the jsp 根据在另一个选择下拉列表中选择的年份动态显示选择下拉列表中剩余的可用月份 - Dynamically display available months left in a select dropdown based on Year selected in another select dropdown 为月份和年份创建一个下拉列表并在 php 中选择 - create a dropdown list for month and year and selected in php 如何根据选择的月份和年份显示 FullCalendar 日历? - How to display FullCalendar calendar based on selected month and year? 如何在按钮中显示下拉列表的选定元素? - How can I display the selected element of a dropdown list in a button? JSP:如何将下拉列表的所有(选中和未选中)选项传递给 servlet? - JSP: How to pass all (selected and unselected) options of a dropdown list to servlet? 如何在JSP中保留下拉菜单的选定值? - How do i retain the selected value of a dropdown in a JSP? 如何将 JQuery Datepicker 月份和年份显示更改为下拉列表? - How to change JQuery Datepicker Months and Years display to Dropdown? 在jQuery中,如何根据从下拉列表中选择的月份增加年份 - In jQuery How Would You Increment the Year based on Month selected from a Dropdown 如何仅通过在 datepicker 中选择月份来加载选定的月份日期? - How to load selected months dates only by selecting month in datepicker?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM