Tagged Questions
20
votes
4answers
26k 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 ...
11
votes
3answers
6k 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 ...
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 ...
18
votes
5answers
6k 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).
...
5
votes
8answers
14k 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
7answers
53k 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.
...
9
votes
12answers
4k 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?
5
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 ...
2
votes
1answer
387 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 ...
10
votes
10answers
27k 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>
...
33
votes
11answers
11k 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 ...
8
votes
3answers
20k views
calling a java servlet from javascript
I am trying to create a web application using the MVC design pattern. For the GUI part I would like to use JavaScript. And for the controller Java Servlets.
Now I have never really worked with ...
24
votes
2answers
9k 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 ...
21
votes
6answers
23k views
Java equivalent to JavaScript's encodeURIComponent that produces identical output?
I've been experimenting with various bits of Java code trying to come up with something that will encode a string containing quotes, spaces and "exotic" Unicode characters and produce output that's ...
10
votes
8answers
14k views
Best source code formatter for Javascript?
I've been digging through Stack Overflow as well as a number of Google searches, and I cannot find a satisfactory code formatter for Javascript.
I have found several related tools, such as syntax ...