bab javier

Ranch Hand
+ Follow
since Aug 12, 2003
Merit badge: grant badges
For More
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 bab javier

Hi Guys!

I'm kinda dazed by this. The Date getTime() is giving the same result for two different dates:


Result:
milliseconds1 = 1276849617164
milliseconds2 = 1277972817164
milliseconds3 = 1277972817164

milliseconds 2 and 3 have the same values.

Hope someone can explain why. Thanks.
13 years ago
Hi guys,

I need to debug spring & ibatis source codes into my project. How do I add these codes in my current app project?

Thanks!
hi! thank you very much. it's already working!
20 years ago
JSP
i need to compare a DB record to a variable inside a JSP page. Whenever i use the statement:
String s = resultSet.getString("columnName");
it results to "no data found", but when i do
<%= resultSet.getString("columnName")%>...it prints the value.
pls help...
20 years ago
JSP
hi! what is the correct escape format for the character "@"? i've tried "\@" but it won't compile.
thanks guys!
20 years ago
i'm using a JSP to INSERT to an MS Access DB. Problem is i get an exception:
javax.servlet.jsp.JspTagException: Error executing "
INSERT INTO UserDetails
VALUES(michelle, (String)
mich, (String)
marie,(String)
smith,(String)
35,(int)
tech_05@yahoo.com, (String)
1550)(String)
": java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'tech_05@yahoo.com'.
i don't understand the "missing operator" thing.
Also, when i deleted the value for the email address as well as the email field in the DB, i get this error "Too few parameters. Expected 4". I don't get it

thanks in advance guys!
hi again! tnx for the tip. its working now. i kinda forgot that i'm working with 2 jsp files that i forgot to place the package name at the other file :roll:
thanks! you're a big help!
20 years ago
i got it! it's working now!
thanks guys!
20 years ago
JSP
hi! i've tried it but it still gives me the same exceptions.
20 years ago
hi! my bean can't be detected by my server. i'm using tomcat 4.1.18 and placed the bean under ..webapps/root/web-inf/classes. whenever i run the jsp, it gives me an error that it cannot find the bean class.
i've used the <page import> directive but still it won't work.
i'm a newbie in jsp.
pls help!
20 years ago
JSP
i'm a newbie in jsp and am just learning through online tutorials.
my prob is that whenever my jsp uses a bean, it can't detect the class. my tutorial instructs me to put my JSPs in /webapps/ROOT. i tried to put the beans by adding another folder (/WEB-INF/classes) in the said directory. but i still can't get it to run.
need help! tnx
20 years ago
thanks again david! i'll look into the boids example
20 years ago
here's a piece of the code....
public void paint(Graphics g){
g.setColor(white);
g.fillRect(wholeScreen);
player.draw(g); // player is a sprite object
}
public void move(int keyCode){
if(keyCode == Canvas.KEY_NUM1
jump();
}
void jump(){ // moves up and then down
int count = 0;
while(count != 48){
try{
Thread.sleep(1000);
}catch(InterruptedException i){}

player.move(-1,-1); //changes the x and y coordinates
count++;
repaint();
}
if(count == 48){
while(count != 0){
player.move(-1,1);
count--;
repaint();
}
}
}
20 years ago
i'm trying to move an image in slow motion. problem is putting sleep() inside a loop doesn't give that effect. instead, it runs the loop(behind the scenes) and will just show u the finished output. for example:
i have to get point A to point B
- effect should be A................B (dots indicating slow motion)
but i get
- B
in J2SE, sleep() works fine inside a loop. can't figure out why it isn't in J2ME.
pls enlighten me guys
20 years ago
thanks Pavlin. its working!
now i have another problem, those sprites that i have embossed are not interactive. they can't collide with other sprites. i think it has been converted or treated as an image.
Puneet:
are u making a program for a Nokia phone? if yes, u can use DirectUtils.createImage(width, height, ARGBcolor). this will make the whites transparent.
if u want ur image to fit the whole canvas, i would suggest that u make or have a graphic designer make an image that has ur canvas dimensions. i won't recommend that u resize (through code) ur image for it will be blurred. the pixels usually "explode".
hope this helps.
20 years ago