ken carlino

Greenhorn
+ Follow
since Nov 06, 2006
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 ken carlino

Is there a way to check if a file is a zip file in java?
Checking file extension is one way, but is there a better way?

Thank you.
17 years ago
Hi,

Can I mix hibernate configuration data in properties and cfg.xml files?
i.e. part of it is in properties and part of it is in cfg.xml files?

Here is my code:


But I get this exception, when i run it:



I did set the database dialect in my hibernate.cfg.xml file:
Hi,

Does tomcat setup this system property 'http.proxyHost" to "" (empty string) when it runs?
If yes, can you please tell me how to disable that functionality?


Thank you.
17 years ago
Hi,

Does tomcat setup this system property 'http.proxyHost" to "" (empty string) when it runs?
If yes, can you please tell me how to disable that functionality?


Thank you.
17 years ago
Hi,

How can I jar a directory to a file programmically in Java?
I know one way to do it is via System.exec(), but that seems to be heavy duty.

Can you please tell me if there is an more efficient way?

Thank you.
17 years ago
HI,

Can someone please tell me where can I find example to implement a wizard like application using JSF?

How can I pass information between pages? And when user finished the wizard, the information should be gone.

Thank you.
17 years ago
JSF
Thanks. I am using Tomcat and I try to use the UrlRewriteFilter http://tuckey.org/urlrewrite/ project

I add this rule:
<rule>
<from>/?lang=jp</from>
<to type="redirect">%{context-path}/index_jp.html</to>
</rule>

Butt this does not work, I will be redirect to whenever I hit
'http://localhost:8080/testWebApp/?lang=jp'
http://127.0.0.1:8080/?/testWebApp/rewrite-status
17 years ago
Thanks. Here is what I want to accomplish:
My webapp context name is "testApp".

If user hits 'http://localhost:8080/testApp/?lang=en', return '/index.html'
If user hits 'http://localhost:8080/testApp/?lang=jp', return '/index_jp.html'
If user hits 'http://localhost:8080/testApp/TestServlet1?lang=jp', invoke TestServlet1 with the query string.

Thank for any idea.
17 years ago
Hi,

I have a servlet which map to the root url, like this,


But in the doGet() of my TestServlet, if i do this:


it will keep recursively calls back to the doGet() of my TestServlet.

Can you please tell me if there is a solution to my problem? i.e map my servlet to the root and yet I am able to send down static page ?

Thank you.
17 years ago
Hi,

I am trying to map map a Blob to a byte[] in hibernate 3.
So I following this example http://www.hibernate.org/73.html (based on hibernate 1.3.2), and create my BinaryBlob Type.

But when I run it , i get this exception, can you please tell me what did i do wrong?



Here is my code: