Elizabeth King

Ranch Hand
+ Follow
since Jul 11, 2002
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 Elizabeth King

Swastik Dey wrote:PreparedStatement might be an option i think.





The list is an ArrayList with a dynamic length as well.
I'm using MySQL.

To query the 'users' table with WHERE and IN with a static list, I have something like:

SELECT * FROM users WHERE user_id IN (1001, 1002, 1003, 1004); -- user_id is the PK of users table

How do I pass a dynamic list of user_id to WHERE user_id IN (....) ?

The list is an ArrayList with a dynamic length.

Ulf Dittmer wrote:Just to be clear, "www.xyz.com" is the server where your page was served from, right? Otherwise this access is not allowed under the "same origin" rule.


Yes. Both the html and php are from www.xyz.com. I can access the www.xyz.com/php/my.php directly from a browser w/o problems.

I want to use Ajax to send a request to a remote php file and I got XmlHttpRequest object successfully,
but got a exception at the following line:

xmlHttpRequest.open('POST', "http://www.XYZ.com/php/my.php", true);

In FireFox, the exception is: Access to restricted URI denied code: "1012"

I also tried IE and Safari and got a similar error at the same line of the code.

I know I can call remote Java object (servlet) in the same way, why not php?
I think it should belong to this forum.

I want to use Ajax to call the remote php file like following:

// I got XmlHttpRequest object successfully, but got an exception at the following line:
xmlHttpRequest.open('POST', "http://www.XYZ.com/php/my.php", true);

In FireFox, the exception was: Access to restricted URI denied code: "1012"

I also tried IE and Safari and got a similar error at the same line of the code.

I know I can call remote a Java object (servlet) in the same way, why not php?

I have a html file, which has a Javascript section:

<html>
<header>
<script src="my_util.js" language="javascript"></script>
...
</header>

<body scroll="no" >
<script language="JavaScript" type="text/javascript">
<!--

//Somewhere in the JS code, I need to call http://www.XYZ.com/php/my.php

// -->
</script>
...

</body>
</html>

I can not change the file extension from html to php. How should I do it?
Are they originally Weblogic SOA and ESB? Are the Weblogic brand still sold separately from Oracle brand?
10 years ago
There are many vendors and open source provide ESB, and they are very different. Is there a standard?

Originally posted by Elizabeth King:
Can anyone post some links for these tutorials?



I mean direct and good ones.
10 years ago
Can anyone post some links for these tutorials?
10 years ago

Originally posted by Ulf Dittmer:

I'm not sure if you're responding to something Bear said with this, but in my experience it's beyond the non-technical user to set more than one JVM on a machine, and to make sure they get used for different purposes. But then, I'm not sure how this would make using JWS and/or applets more or less palatable to begin with ... ?



I agree that JVM is much heavier than Flex VM and this is why its UI functions are much richer. Especially, Java3D.

I think JNLP allow you to use the JVM just for your Swing app, but not affect others running on the same computer.
11 years ago

Originally posted by Bear Bibeault:
Many reasons, including what you have listed. Can you always assume that your client has a JVM at all? And one that's up-to-date? Is your client comfortable with downloading and running your software on their systems? Do you really want to have the headache of supporting multiple copies of your app on the target systems (versus the ease of maintaining a single web application?) And so on.

As I said in the other post, it depends on the needs and the requirements of the particular job. There is no one-size-fits-all solution.

P.S. As you have chosen to move the discussion here, I have closed your other topic on this subject.

[ August 11, 2008: Message edited by: Bear Bibeault ]



Flex is also running in a VM.

When you got a browser, you got a JVM. Plus, you can use a different JVM to run your Swing app
11 years ago

Originally posted by Jesus Angeles:


Just as was asked already, why would you need to choose among these?



Yes, it was asked. But no one can offer a straight answer. All the responses were just adding more questions.

Originally posted by Bear Bibeault:
For what? You can't pick the most appropriate tool for the job unless you know what the job is.



There are many different way to get a job done. You can choose JEE or .NET, EJB or Spring, Hibernate or Toplink, Struts or JSF, the list goes on...

My guess is that Java Swing with JWS is too old to impress your clients or boss.