Displaying keyword search results 1 - 4
Created by Fang on February 21, 2012 20:33:58 Last update: February 21, 2012 20:33:58
You can customize Tomcat error page with error code:
<error-page> <error-code>404</error-code> ...or Java exception type:
<error-page> <exception-type>java.lang.Throwab...Either error-code or exception-type is required, but not both. There's no way to aggregate error codes, such as:
<!-- This does not work! --> <error-page> ...Customizing error pages is about the only way to suppress the default stack trace in Tomcat in case of an unhandled exception.
Created by nogeek on November 03, 2010 20:52:49 Last update: November 23, 2011 08:54:44
My problem is simple: in my XML data, a timestamp is provided as a long integer (number of milliseconds since the "the epoch"). When I do XSLT, I want to display it as a readable string, such as "Mon Nov 01 18:08:48 CDT 2010". After hours of struggle, I found: It's not so easy to get the job done with JDK 1.6 There are tons of garbage on the web in this space (suggestions, code snippets that simply don't work) Simple Xalan extension functions was the only resource that's somewhat informative. Even there some of the examples don't work. Below is a list of what worked and what didn't. This works:
<xsl:stylesheet version="1.0" xmlns:xsl="h...This does not (providing long value to Date constructor):
<xsl:stylesheet version="1.0" xmlns:xsl="h......
Created by voodoo on July 11, 2009 15:14:55 Last update: July 29, 2010 22:45:48
cURL is a command line tool for transferring files with URL syntax. The main purpose and use for cURL is to automate unattended file transfers or sequences of operations. It's really easy to see HTTP headers with curl:
C:\>curl --head http://www.google.com HTTP/1.0 ...or, headers and page together (dump headers to stdout):
$ curl --dump-header - http://www.google.com HTTP/...Download openssl from openssl.org:
C:\>curl --help Usage: curl [options...] <url> ...