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

Aris Tan

Greenhorn
+ Follow
since Aug 05, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
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
Hi,

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 ]
Hi,

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)

Thanks
13 years ago
Hi

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

Thanks for the help.
13 years ago
Hi,

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

Thanks.
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
C:\tmp\build\
C:\tmp\src\oata\HelloWorld.java
C:\tmp\lib\log4j-1.2.15.jar
C:\tmp\build.xml

My HelloWorld.java
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"/>
</path>

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

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

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

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

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

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

</project>
14 years ago
Hi,

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();
c2.set(Calendar.DAY_OF_MONTH,1);
c.setFirstDayOfWeek(c2.get(Calendar.DAY_OF_WEEK));



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

System.out.println(c.getTime());

}
}


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