20
votes
4answers
28k views

Populating child dropdownlists in JSP/Servlet

Suppose I am having three dropdownlist controls named dd1, dd2 and dd3. The value of each dropdownlist comes from database. dd3's value depends upon value of dd2 and dd2's value depends on value of ...
13
votes
4answers
7k views

Simple calculator in JSP

This is sort of a continuation of my previous question, but I feel it deserved to be on its own, especially because of the very detailed answer I got. I would like to create a simple calculator in ...
66
votes
11answers
108k views

How can I get stock quotes using Google Finance API?

I'm looking for access to financial data from Google services. I found this URL that gets the stock data for Microsoft. What are all the possible parameters that Google allows for this kind of HTTP ...
12
votes
12answers
5k views

Why is JavaScript called JavaScript, since it has nothing to do with Java? [closed]

Since JavaScript is not derived from Java, why does it have "Java" in the name?
0
votes
1answer
1k views

JSF, HighCharts and JS

I would like to use in my project highcharts and jsf both. I have a managedbean, which has a list and it is initializing by a facade (it do a query in my database). If I'd like to pass the value of ...
27
votes
2answers
11k views

Do websockets allow for p2p (browser to browser) communication?

To clarify when I ask about browser to browser communication I mean without a server in between forwarding message. I would like to implement something like this for a game. If p2p in websockets ...
3
votes
1answer
453 views

Swing method akin to HTML5's canvas.putImageData(arrayOfPixels, 0,0)

I have some Javascript code that acts on an pixel array defined like so: screen = {'width':160, 'height':144, 'data':new Array(160*144*4)}; ... canvas.putImageData(GPU._scrn, 0,0); Where screen is ...
22
votes
5answers
7k views

How can you run Javascript using Rhino for Java in a sandbox?

Part of our java application needs to run javascript that is written by non-developers. These non-developers are using javascript for data formatting. (Simple logic and string concatenation mostly). ...
34
votes
11answers
13k views

Is a colon safe for friendly-URL use?

We are designing a URL system that will specify application sections as words separated by slashes. Specifically, this is in GWT, so the relevant parts of the URL will be in the hash (which will be ...
5
votes
8answers
15k views

How does one record audio from a Javascript based webapp?

I'm trying to write a web-app that records WAV files (eg: from the user's microphone). I know Javascript alone can not do this, but I'm interested in the least proprietary method to augment my ...
7
votes
6answers
60k views

convert HTML ( having Javascript ) to PDF using java / javascript

I want to convert HTML (having javascript ) to PDF. How can I do that? I just want to show what is being shown in web page. I am displaying a gantt chart that is generated by a javascript library. ...
6
votes
7answers
4k views

Spreadsheet-like control for a web application? [closed]

A client of mine is looking to convert a critical 'application' based on multiple (very complex) spreadsheets into a web app. As part of this they'd like some of the web pages they use to enter/model ...
7
votes
2answers
8k views

Execute managebean method from javascript onload event

How can I make an ajax request that updates a <h:dataTable> from javascript? I am currently loading the initial data using @Postconstruct but that is significantly delaying the initial page ...
10
votes
10answers
30k views

access denied (java.net.SocketPermission 127.0.0.1:8080 connect,resolve)

I have a Java Applet inserted on a simple HTML page located at http://localhost:8080/index.html: <applet id="applet" code="SomeCode.class" archive="lib.jar" Width="1" Height="1"></applet> ...
8
votes
9answers
15k views

Detect version of Java using JavaScript

Is there a reliable way of detecting what version of Java is installed on the client's machine using JavaScript?

15 30 50 per page