|
Mike, Server Side includes are provided by the HTTP Server. WDSC WAS test environments, which I assume your talking about, include an embedded http server. I can only assume that it does not support SSI. You would have to install IBM HTTP Server and full WAS on your machine, or setup a test environment on your 400. cheers Colin.W http://as400blog.blogspot.com Extension 5800 Direct dial 0870 429 5800 -----Original Message----- From: Mike Troxclaire [mailto:mike_troxclaire@xxxxxxxxxxx] Sent: 13 January 2005 16:42 To: wdsci-l@xxxxxxxxxxxx Subject: [WDSCI-L] WDSC and SSI. Hey Gurus, I am running into a problem with my ssi's when I try to deal with them in my wdsc test environment. I have a very simple .shtml file and I am calling a servlet to display times in different zones but I dont think the WDSC test environment(server) supports ssi. I might be wrong about this but wanted to verify before jumping to any conclusions. Here is the code to my .shtml file and my servlet. Any help is much appreciated. Mike. .shtml ===== <HTML> <HEAD><TITLE>Times!</TITLE></HEAD> <BODY> The current time here is: <SERVLET CODE=/Servlets/CurrentTime> </SERVLET> <P> The current time in London is: <SERVLET CODE=/Servlets/CurrentTime> <PARAM NAME=zone VALUE=GMT> </SERVLET> <P> And the current time in New York is: <SERVLET CODE=/Servlets/CurrentTime> <PARAM NAME=zone VALUE=EST> </SERVLET> <P> </BODY> </HTML> servlet code ======== public class CurrentTime extends HttpServlet { public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { PrintWriter out = resp.getWriter(); resp.setContentType("text/html"); Date date = new Date(); DateFormat df = DateFormat.getInstance(); String zone = req.getParameter("zone"); if(zone != null) { TimeZone tz = TimeZone.getTimeZone(zone); df.setTimeZone(tz); } out.println(df.format(date)); } } _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ -- This is the Websphere Development Studio Client for iSeries (WDSCI-L) mailing list To post a message email: WDSCI-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/wdsci-l or email: WDSCI-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/wdsci-l. This e-mail has been sent by a company of Bertram Group Ltd, whose registered office is 1 Broadland Business Park, Norwich, NR7 0WF. This message, and any attachments, are intended solely for the addressee and may contain privileged or confidential information. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. If you believe that you have received this email in error, please contact the sender immediately. Opinions, conclusions and statements of intent in this e-mail are those of the sender and will not bind a Bertram Group Ltd company unless confirmed in writing by a director independently of this message. Although we have taken steps to ensure that this email and any attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.