<CFSCRIPT> GetPageContext().include(“hello.jsp”); </CFSCRIPT>
Full details here... http://www.macromedia.com/devnet/mx/coldfusion/articles/java.html WG -----Original Message----- From: Shahzad.Butt [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 10:14 To: CF-Talk Subject: JSP/Java in CF Page Hi First time writing Java/JSP code in CF. What should be the syntax to include this java file in cf page and print results. <%@ import java.text.SimpleDateFormat;%> <%@ import java.util.*;%> <% public class formatDate{ public static void main(String args[]) { String seconds = args[0]; long secs = Integer.parseInt(1057580739); long millseconds = secs * 1000; Date dateObj = new Date(millseconds); SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); String formattedDate = sdf.format(dateObj); System.out.println(formattedDate); } } %> Shaz ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4