Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

Susan Smith

Ranch Hand
+ Follow
since Oct 13, 2007
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Susan Smith

I'm using DIGEST authentication in my web app.
I noticed that after every so often it asks me to re-login: the pop-up window asking me for username and password shows up again.
How do I prevent this behavior ? I only want to logi

I have tried to set the session-timeout to -1 in my web.xml file but it doesn't seem to help.

Thank you in advance for the help. Please let me know if I should provide more information.
6 years ago

I'm a newbie in blackberry application development. Trying to create HelloWorld app. I downloaded BlackBerry Java Plug-in 1.3.0
and created these two Java classes (code below the line).

I notice the simulator runs so slow. It also seems hang from time to time. Why is this ?
For example when I click the blackberry icon it supposed to bring up a menu. But it seems extremely slow. Can someone please advise ?
The simulator that comes with the installation is Blackberry 9800 simulator.

Thanks in advance for all the help.


9 years ago

I'm learning PHP and trying to learn how to call a service .
I try to use the simplexml_load_file but it doesn't work (it always returns false -- code below). I did some research and found that allow_url_fopen in php.ini should be "on" but it doesn't solve the problem.

I do testing in my local windows Vista machine using XAMPP.
Thanks in advance for the help.
9 years ago
I just checked with the provider: No Tomcat Manager, No Connection Pooling and Tomcat DB authentication.
They offered "Dedicated Server" that can do all these, which is far more expensive.

Do most of the providers that offer Java support have similar situation (need to purchase dedicated server to be able to use connection pooling and tomcat db auth., etc)? Can someone please advise?

Thanks again for all the help.
10 years ago

I'm learning to create web application using Java.
I just signed up for a hosting account. It's a shared hosting account and I learned that I cannot restart Tomcat.

My question is: does it mean I cannot do things like connection pooling or / Tomcat authentication using database?
Since based on my understanding I need to access server.xml in Tomcat configuration file.

Can someone please advise if they have experience in this?

Thanks in advance. I really appreciate all the help.
10 years ago

I'm building a website and looking for a domain name and hosting provider.
Can someone please recommend a good provider?

Right now I only have HTML, CSS, Javascript, Jquery files but thinking
about support for server side language like JSP in the future.

Thanks in advance for the advice.
Terribly sorry if this is not the correct forum to ask this question.
10 years ago
Paul, thank you so much !

, I must be were so tired didn't notice this.
Thanks, again!

I have an XML. The following is a sample:
<MYDATA ..... NEXT15M="124" NEXT30M="124" NEXT45M="124" />

When I validate this against the XSD I created using this tool:

But when I make the following changes (both in XSD and in the XML feed), the validation is ok:
"NEXT15M" --> "NEXT15MIN"
"NEXT30M" --> "NEXT30MIN"
"NEXT45M" --> "NEXT45MIN"

I'm confused as why this might happen. Any thought?

Thanks in advance for the help.

I apologize in advance if this is a newbie question.

I'm including json data in .js file in my web application.
I put this in the head element of the html page:

My question: Is the above somehow cached in the browser? Or does it load every time the page is load?
Based on my observation, it looks like it doesn't get cached since it takes long time to load every time.
I'm trying to see if there's a way I can make it cached since the JSON data is pretty big and takes some time to load.

Thank you for the advice.

Not sure if this is helpful or not:
But what I usually do when accessing web service from Java is take the WSDL (which usually available in web service I believe) and convert it using wsdl2java using Apache Axis:

Then it will give you Java classes that you can use in your program.
10 years ago

I started learning Android recently and created a project just for my testing.

The main page will be, which has a submit button.
When the submit button is clicked, it will bring up (which has a WebView object to display the http site).
Until this point, everything looks ok.

But then I want to create a Menu in the WebPage view, where I can go back to the LoginPage view.
I override the onCreateOptionsMenu() and the onOptionsItemSelected().
But what shows up is the original default menu from the Android phone.

I'm wondering if anyone has any advice? Thanks in advance for all the help.
Below is my code: +

10 years ago

Just wondering if anyone has any suggestion.

Thank you in advance for all the help.
10 years ago

I'm trying to set up connection pooling in my web app.
I'm pretty new in Glassfish and connection pooling so I apologize in advance if this is a newbie question.

Here are the steps I do:
1.) I follow example from this tutorial:
Using "Admin Console"

- I create a JDBC Pool. I successfully ping it
JNDI Name: mysqlPool
Resource Type: javax.sql.DataSource
Datasource Classname: com.mysql.jdbc.jdbc2.optional.MysqlDataSource

- Create JDBC resource to associate with the connection pool
JNDI name: mysqlsource
Status: Enabled

2.) Then just for testing, I put this in a JSP:

3.) But I got this error message:
Couldn't open connection to database: No object bound to name java:comp/env/mysqlsource

I'm not sure what steps I'm missing. Can someone please advise?
Thanks in advance for all the help.
10 years ago

Sorry to bother you guys again.
Just want to follow up if anyone knows some pointers to my question.

Thanks again in advance for the help.
Let me know if I can provide more information.

I'm trying to set query timeout for a PreparedStatement object (below is the code snippet).
I set the query timeout to "1" second just for testing first. But I notice the query takes longer than 1 second but it is successfully executed. No SQLException is thrown. I'm confused why this doesn't work. Can someone please advise?

Thanks in advance for all the help.