zb cong

Ranch Hand
+ Follow
since Jan 14, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by zb cong

Thank you very much, it works by passing the long date value.
11 years ago
I think the string should works, because other fields are string, they work well. otherwise, i could not change the type to timestamps, the Date type is mandatory,thanks.
11 years ago
yes, it is a java.util.Date type.

Thanks.
11 years ago
Hello,

take look following ajax call and spring controller code, note, the "depositDate" field is date type, when the call is executed, the server side return the "Bad Request" errors. But if i set this field as null, it works, so i conclude i may not handle the date type well. who can helps? thanks.




the controller


11 years ago
in my page "http://someserver/contexturl/report/view", there is a print button. when i click that button, the following js function is called.

window.showModalDialog('printView?resourceName=link',"param","dialogHeight=600px,status=no,location=no");

i hope it can open a print page at following url:

http://someserver/contexturl/report/printView?resourceName=link

notes: this is a spring app, the url is virutal url, in fact, it is a jsp page.

the IE works well, but the firefox and some other browsers don't work, they open the following link instead:

http://someserver/contexturl/printView?resourceName=link

the spring controller can NOT locate the resource, i have checked some articles, they say the browsers adopt different relative URL resolution. who knows what is the solution for this case? thanks.

my spring+jpa+hibernate app can not find the entities which are defined in orm.xml file, it complain "unknow entity", the spring config as follows:



the orm.xml put in th same directory as the applicationContext.xml file. who can help? thanks.
11 years ago
take look following simple code:


when i run it, it fail to retrive the message from the queue, and print null, but when i run it on debug mode(maybe the speed is slow), the message can be retrived. the code works well with openJMS, any suggestion to this case? thanks.
Hello,

i have a web application which expose the rest service, i want to set the url as basic auth in server side by JAVA CODE, not the configuration file. how to do that? thanks.
11 years ago
please refer this page:

http://jersey.java.net/download.html

i am new to maven, and i have installed maven, the bin is in the path, but what is next, how to download Jersey? who can help thanks.
11 years ago
Hello,

i am new to maven, in this page

http://jersey.java.net/download.html

it said that i can download Jersey by maven, i have installed maven by set bin in the path. but it does not provide steps how to use the maven to download Jersey, who can help to list the steps here, thanks a lot.
11 years ago
Thanks, got it, the installer put a copy of java.exe in the system32 dir, I remove it and set path variable to switch to other version, it works.
11 years ago
Hello,
i installed jdk7, after installation, i can invoke java command from command line, but when i check the path env variable, i could not fine the java path is added there by java installer, i wonder why i can invoke java command without specify the full path?


Thanks.
11 years ago
Hello.
i am the beginner to the cloud computing, i am starting from hadoop, recently, i found a api called jcouds, i wonder the relationshipe between the jcouds and hadoop, can i use the jcouds to connect to hadoop? how? thanks.
12 years ago