Notes by meiu
Displaying notes 11 - 14
Created by meiu on July 07, 2010 15:16:34
Last update: July 07, 2010 15:17:08
Example:
<%@ taglib prefix="fmt" uri="http://java.sun.com/j...
Full attributes:
Attribute Meaning
value Date object to be formatted
type Format time only ('time'), date only ('date'), or both date and time ('both')?
dateStyle Style to format date, e.g., default, short, long, full etc (c.f. JavaDoc for java.text.DateFormat)
timeStyle Style for format time, e.g., default, short, long, full etc (c.f. JavaDoc for java.text.DateFormat)
pattern User defined pattern, e.g., MM/dd/yyyy
timeZone Which time zone to display the date for?
var If the var attribute is specified, then a String value containing the formatted date is assigned to the named variable. Otherwise, the <fmt:formatDate> tag will write out the formatting results.
scope When the var attribute is present, the scope attribute specifies the scope of the resulting variable.
.
Created by meiu on February 11, 2010 04:34:48
Last update: February 11, 2010 04:34:48
Bring up the System Properties dialog by pressing Windows Logo + Pause/Break . Select the Advanced tab. Click the "Environment Variables" button.
Create a new environment variable by clicking New . Edit an existing one by clicking Edit .
User specific variables are on the top. System wide variables (effective for all users) are at the bottom.
Created by meiu on February 10, 2010 20:53:27
Last update: February 10, 2010 20:53:27
Step by step procedure to setup OC4J server for Eclipse. Version used is Galileo for Java EE Developers. Initialize OC4J You'll be asked to create a password the first time you run the standalone OC4J server. You need to remember this password and use it in the Eclipse setup. In the following C:\jdev1013_5 is where the JDeveloper suite is installed.
cd C:\jdev1013_5\j2ee\home java -jar oc4j.jar Add Server Runtime Environment Go to Windows menu, bring up the Preferences dialog. Select Server -> Runtime Environments, click Add. Select Oracle OC4J Standalone 10.1.3.n, click Next. Enter J2EE home and click Finish. Add a server for OC4J Go to Windows menu, select Show View -> Servers. If Servers menu is not visible, select Other and enter "servers" in the...
Created by meiu on July 29, 2009 19:30:35
Last update: July 29, 2009 19:30:35
Without the break statement, the Java switch/case block looks very deceptive.
Code:
public class TestCase {
public static void ...
Test:
C:\tmp>java TestCase
No arguments
One argume...