Tutorial: ColdFusion Date and Time CFTIME: How to Make Content Appear and Disappear Tutorial
Content on the web often has a shelf life. You may have information that you want up after a certain point in time or you may want it to be gone after a certain time.You may want to have it appear and disappear without having to be editing files or changi
Tutorial Details:
Content Appear and Disappear
Content on the web often has a shelf life. You may have information that you want up after a certain point in time or you may want it to be gone after a certain time.You may want to have it appear and disappear without having to be editing files or changing out input in some back end system. You will find that you can build a simple system for publishing and removing info with ColdFusion 's CFIF tag and CreateDateTime() and Now() functions.
CFIF is one of the most basic and commonly used tags in ColdFusion. We will use it to hide or display content based on comparing a set date to the time that the page is parsed for the visitor.
The CreateDateTime() function takes date and time parameters and creates a ColdFusion date/time object. The format is CreateDateTime(year,month, day, hour, minute, second).
The Now() function takes no parameters and produces a ColdFusion date/time object for the current date and time including seconds.
JSP Tutorial
This Tutorial is for beginners in the Java Server Pages Technology
Tutorial for Developing your first JSPs tags
We have seen how servlets and JSPs can be used to build a web application. These technologies go some distance toward making web development easier, but do not yet facilitate the separation of Java from HTML in a reusable way. Custom tags make this possib
Getting Started With Composite Capabilities/Preference Profiles and JSR 188
This article presents Composite Capabilities/Preference Profiles for designing content once. JSR 188 allows users to access the same application or content from any device, and be confident that it will work on that device, and will accommodate their pref
Device Driver Tutorial for the Solaris OS
Make your hardware work with the Solaris OS on x86 or SPARC architectures. If you are a beginning Solaris kernel programmer, start with this new tutorial on docs.sun.com.
JSP date example
JSP date example
JSP Date Example
Till now you learned about the JSP syntax, now I will show you how to create a simple dynamic JSP page that prints the current date and time. So the following code accomplish this:
<%@page contentType="text/html"