Win a copy of Head First Android this week in the Android forum!

Aris Tan

+ Follow
since Aug 05, 2005
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Aris Tan

Initially, my form has two dropdowns. the contents of the second dropdown is populated via ajax

using dwr. The "Add another" link creates another instance of the dropdowns, the problem is it loses the

ajax/dwr functionality of the first.

Appreciate the help.

anything specific I should look for?

But I can still see the Child going to the database even after it was initially loaded, what am I missing?

Appreciate any help
I have a JSP that takes a while to load especially if run for the first time. I would like to show a "loading" .gif during this time. How should I go on about implementing this in jQuery? Appreciate any help.
[ June 26, 2008: Message edited by: Aris Tan ]
Hi, I'm trying to unit test a function with jdbc access

But I'm getting a null on dataSource.getConnection(). What am I missing? Appreciate any help.
[ June 23, 2008: Message edited by: Aris Tan ]
13 years ago
No, I'm not getting the alert. What's interesting is that I get the alert when I use '$.get'. what am I missing?

Thanks for the UBB code tag tip btw

Based on a dropdown selection, I'm trying to make an ajax call using jquery, json

From the debugger, I can see that it is going thru this line:
String myString = new JSONObject().put("JSON", "Hello, World!").toString();

But nothing is happening on the front end, Is there anything else I need to do?

Appreciate the help.
[ April 28, 2008: Message edited by: Aris Tan ]

I just installed and started an app in Websphere 4 But I'm not able to access it from the browser (HTTP 404).
Port is fine (http://server:3081/) But I get nothing when I access the app (http://server:3081/myApp)

13 years ago

Is it possible to get the date/time an object is added to a Hashtable?

Thanks for the help.
13 years ago

Does anybody know if Hibernate 2 will work on Websphere 6? I've been looking all over and I haven't found anything.

when I run ant, it's complaining that it doesn't see Logger. what am I doing wrong? Appreciate any help. Thanks.

This is my directory structure

import org.apache.log4j.Logger;

public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World");

My build.xml

<project name="HelloWorld" basedir="." default="main">

<property name="src.dir" value="src"/>
<property name="build.dir" value="build"/>
<property name="classes.dir" value="${build.dir}/classes"/>
<property name="jar.dir" value="${build.dir}/jar"/>
<property name="main-class" value="oata.HelloWorld"/>
<property name="lib.dir" value="lib"/>

<path id="classpath">
<fileset dir="${lib.dir}" includes="**/*.jar"/>

<target name="clean">
<delete dir="${build.dir}"/>

<target name="compile">
<mkdir dir="${classes.dir}"/>
<javac srcdir="${src.dir}" destdir="${classes.dir}"/>

<target name="jar" depends="compile">
<mkdir dir="${jar.dir}"/>
<jar destfile="${jar.dir}/${}.jar" basedir="${classes.dir}">
<attribute name="Main-Class" value="${main-class}"/>

<target name="run" depends="jar">
<java fork="true" classname="${main-class}">
<path refid="classpath"/>
<path location="${jar.dir}/${}.jar"/>

<target name="clean-build" depends="clean,jar"/>

<target name="main" depends="clean,run"/>

14 years ago

I have the following code:

import java.util.*;

public class cal {
public static void main(String[] args) {

Calendar c = new GregorianCalendar();

Calendar c2 = Calendar.getInstance();

c.set(Calendar.DAY_OF_WEEK, 1);
c.set(Calendar.WEEK_OF_MONTH, 3);



when I ran it in java 1.5 I get the output:
Sun Aug 21 20:40:19 EDT 2005

in java 1.3.1, this is printed out:
Sun Aug 14 20:55:11 EDT 2005

any ideas why?
16 years ago