Archive for October, 2007
Polymorphism refers to the ability of an object to behave differently to the same message.
Polymorphism is of two types. static or dynamic. In dynamic polymorphism the response to message is decided on run-time while in static polymorphism it is decided out of run-time (i.e. on compile-time).
The assignment of data types in dynamic polymorphism is known [...]
The following Java code plays a .wav file
import java.io.File;
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.Clip;
import javax.sound.sampled.DataLine;
public class MusicPlayer {
public static void main(String args[]) {
try {
AudioInputStream stream =
[...]
The first step in parsing an XML String using DOM is to get the org.w3c.dom.Document object from our String object. Here I am going to parse the following XML which is stored in a String variable xmlString
<data>
<address>
<name>Tom</name>
[...]
The StringTokenizer class in java.util package has been deprecated as of Java 1.4. Sun recommends the use of String.split method instead of java.util.StringTokenizer class.
For eg:
StringTokenizer strTokens = new StringTokenizer("Token String");
while (strTokens.hasMoreTokens()) {
System.out.println(strTokens.nextToken());
}
Can be replaces with [...]
www.cgshelf.com has started a fresh and new job section in their forum. Job opportunities in the 2D and 3D Industry are available for FREE.
With unique visitors per day within their Computer Graphics network,postings will be discovered by employers in the Computer Graphics Industry.
If you would like to post or look for jobs in their jobs [...]
HttpSession in Controller Command
0 Comments Published October 7th, 2007 in WebSphere, WebSphere CommerceThe following code give a reference to HttpSession object in a WebSphere Commerce Controller Command.
HttpSession session = ((com.ibm.commerce.webcontroller.HttpControllerRequestObject) getCommandContext().getRequest()).getHttpRequest().getSession();
a2a_linkname=”HttpSession in Controller Command”;
a2a_linkurl=”http://www.albeesonline.com/blog/2007/10/07/httpsession-in-controller-command/”;
a2a_show_title=1;
If you enjoyed this post, make sure you subscribe to my RSS feed!
History of 11 year old e-commerce software leader Websphere Commerce.
WCS History
a2a_linkname=”WebSphere Commerce History”;
a2a_linkurl=”http://www.albeesonline.com/blog/2007/10/07/websphere-commerce-history/”;
a2a_show_title=1;
If you enjoyed this post, make sure you subscribe to my RSS feed!
