My boss want to add a flash calendar in our company website, but I don't know how to do, Anybody who can help me? Or recommend one?

Our demands:
1.can change the background(our website color is blue)
2.can using scripts JSP, can select data from our database

Dani AI

Generated

Quick reality check for : do not add new Flash widgets today. Adobe ended Flash Player distribution on December 31, 2020 and major browser vendors removed or block Flash support, so a Flash calendar will be unreliable and insecure for modern users. ()

A practical, future-proof approach that meets your two requirements (custom blue styling, JSP + DB) is an HTML5/JavaScript calendar on the front end and a small JSON endpoint on the server. FullCalendar is a widely used option: it fetches events as a JSON feed, accepts per-event and global color options (so you can use your site blue), and supports start/end query parameters so the server returns only the rows needed. For simpler date-picking (not full month views) consider flatpickr. (fullcalendar.io)

Minimal workflow (apply immediately):

  1. Front end: include FullCalendar and point its events option at a servlet URL.
<div id="calendar"></div>

<script>
document.addEventListener('DOMContentLoaded', function(){
  var calendar = new FullCalendar.Calendar(document.getElementById('calendar'), {
    initialView: 'dayGridMonth',
    events: '/events.json',    // your JSP/servlet endpoint
    eventColor: '#0066CC'      // corporate blue
  });
  calendar.render();
});
</script>
  1. Server (JSP/Servlet): query DB with prepared statements, serialize results to JSON (fields: id, title, start, end) and set Content-Type: application/json. Example pattern shown below (use Jackson/Gson in production):
@WebServlet("/events.json")
public class EventsServlet extends HttpServlet {
  protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
    // parse incoming start/end params, query DB with prepared statement
    resp.setContentType("application/json");
    resp.setCharacterEncoding("UTF-8");
    new ObjectMapper().writeValue(resp.getWriter(), eventsList);
  }
}

Watchpoints: return ISO8601 timestamps and handle time zones correctly (FullCalendar parses ISO strings), protect DB queries with prepared statements, and enable appropriate CORS headers only if the endpoint is on another origin. (fullcalendar.io)

Note: as mentioned, third‑party calendar packages exist, but prefer an HTML5/JS solution now — it is easier to style, integrates cleanly with JSP/servlets, and will work across modern browsers.

I am using the jobdao too ,it is so good

cool ,why not to try?

I'm using flash calendar from these guys http://www.phpjabbers.com. Installation script is used to install the script. It's easy to set up and looks great. The support is quick and offer free installation.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.