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

Hiep Nguyen

Ranch Hand
+ Follow
since Oct 26, 2001
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 Hiep Nguyen

hi Merrill,
Thank you for your response.
I have tried the solution before posting the question but URL is after encoded nothing change, it means it doesn't attach the session id to URL as servlet.
does any one has other suguest?
Thank you,
Hiep
16 years ago
JSP
hi room,
in case webrower is turned cookie off, so we can't create an cookie file on client's machine. I know in servlet we can use URL rewriting :

response.encodeURL(url);
//it will return an with parameter JSESSIONID=xxx.. belong to url

could you tell me how can i do the same with jsp ?

Thank you,
Hiep
16 years ago
JSP
I know we can map a jsp to servlet. so now my problem is:
i have a jsp A, and B which A includes B.
so for instance:
http://127.0.0.1:8080/myapp/A.jsp

so now i don't want user access to B
http://127.0.0.1:8080/myapp/B.jsp

i want to force everytime user uses the URL
http://127.0.0.1:8080/myapp/B.jsp
it also mean http://127.0.0.1:8080/myapp/A.jsp

thank you !
16 years ago
i think you can use switch statement for more easy.
17 years ago
i don't understand clearly about your question and what do you want. But when you declare a class without exten any class, it mean that you extended the Object class, so your classes can know together.
Sorry if i wrogth
17 years ago
yes, these titles, i told, are title of Jframe, JInternalFrame, JDialog.
18 years ago
all the title of forms is allways blod, so how i can change it, i already setFont for them. and one more question, i want to expend th distance btween chars, how i can do?
thank you !!!
18 years ago
thanks you for your advices!!!
last time i don't tell detaily my request. i use Window OS, now i want to know how an Application can know that my computer is installed JVM or not?
thank you !!!
18 years ago
hello !
how can i know the JVM is already installed on my computer ?
thank you !
18 years ago
hello !
i have finished an App., just a samples, now i don't know how to deploy it, how an can make an install file as any other Appliactions?
one more thing, in java file how i can know where my App is installed by user?
thank you !!!
18 years ago
i don't know how to get the Graphics Object from my App.
thank you!
18 years ago
thank you!
but these are not the right result as you can see, if you pass any value it allways has results look like that. i also use DateFormat class. however, i have these same results.
this is my code

import java.util.Date;
import java.text.DateFormat;
import java.util.Locale;
public class Test {
public static void main (String args[]) {
Date date = new Date(943921260L);
DateFormat format = DateFormat.getDateInstance(DateFormat.SHORT,Locale.ENGLISH);

System.out.println(format.format(date));
}
}

and this is the result

1/12/70

the right result mus has year 1999
thank you one more !
18 years ago
i'm using jdk1.3
yes, it has these warning

so what is my mistake?
thank you so much !
18 years ago
this is the code that i test

anh this is the result when i run the code
[result]
Jan 12, 1970 5:12:01 AM
11 Jan 1970 22:12:01 GMT
Mon Jan 12 05:12:01 GMT+07:00 1970
[/result]
thank you for your replies!
18 years ago
i new an instance of Data clase, and pass for it a long number. when i print it, it print : "January 1, 1970, 00:00:00 GMT". i want to print the date the the long number contain. but i don't know how to get it
can you help me?
thank you!
18 years ago