0
votes
1answer
17 views

Passing javaScript to Jsp in <html:form> tag

I have JS as follows: function taxUrl(taxNum) { document.getElementById('taxNum').value = taxNum; document.taxActionForm.submit(); } In the JSP code I have ...
0
votes
2answers
9 views

Webdriver executeScript sporadically not detecting dynamically generated elements

It has taken me long-long time to figure out and still I m struggling with this. I am trying to access dynamically generated elements on a web page using javascript injection using selenium webdriver. ...
3
votes
0answers
53 views

Getting an empty JavaScript Array in Java (Selenium test)

I need to get an empty array declared in a JavaScript script in a Java variable. The JavaScript array is declared as so on a web page: tc_vars["products"] = new Array(); (I only need the ...
0
votes
3answers
37 views

Best Possible Way to retrieve image from database in javascript or jquery

Want to know what could be the best possible way to retrieve the images stored from database in javascript or jquery. Currently i am retrieving the image from database and storing into one temp ...
-2
votes
1answer
26 views

Executing phantom.exit() in java script from JAVA program

How to execute phantom.exit() in java script from JAVA program. Actually the scenario is Java program calls a java script program using PhantomJs, java script program is returning some values to that ...
0
votes
2answers
50 views

Is there a javascript bind like function in java

I'm newbea to java and i want to know is there anything similar functionality as javascript bind in java. ex : function x(bindedArg, arg1, arg2){ } x.bind(this, 'bindedArg'); x('arg1', 'arg2'); ...
0
votes
1answer
16 views

Faking User-Agent when sending request to server?

I am reading Detecting Device Type in a web application and just got curious if it would be possible to client to fake the User-Agent when sending the request? Question(s) - user sends request via ...
0
votes
3answers
38 views

Passing javascript array tojava servlet

I have found other question regarding on this, but still im having a problem,When i check getParamerterValues, its always return null, and i think im having trouble redirecting it to my ...
0
votes
0answers
13 views

Java: autentication and various operation on a web page

I'll try to be very precise about this. The program that I have to make has to download a long list of PDF from a webpage. One of the main problems is that I have to login into the intraweb to start ...
0
votes
0answers
44 views

Manual Ajax method call with JSF

I'm using JSF to build an application which manipulates QR codes generated by an external API. I need to superimpose those QR codes on a texture file (png) which will finally be used to render a 3D ...
0
votes
1answer
26 views

Can't display log anywhere in railo

I want to display log in standard browser console in Railo. This is my code : log.info("Event Handler Called"); or WriteLog (text="Event Handler Is Called", type="error", application=true, ...
0
votes
1answer
21 views

Java websocket client in JSP possible? [on hold]

Can a JSP page contain a java websocket client implementation? I don't think it's possible so that's why I'm asking. I don't think the javascript is able to grab the content the client would receive. ...
0
votes
0answers
6 views

CryptoJS in Rhino Java

I have difficulty with including JS library. How can I do it? I need "http://crypto-js.googlecode.com/svn/tags/3.1.2/build/rollups/sha512.js" Here is my code: String script ="<script ...
2
votes
2answers
42 views

how to reload every tab of browser which have open our webpages

gmail use some functionality by which they reload all tabs for the login. that means if we open login form of gmail in different different tabs. then login in single tab gmail automatically reload all ...
1
vote
2answers
16 views

AngularJS - userService, registerControll: broken code in registerController, not registering user and returning wrong alert

Here is my registerController: collectionsApp.controller('registerController', function($scope, userService) { $scope.register = function() { userService.register($scope.user); }; ...
0
votes
1answer
24 views

Error when loading JSP

I am facing a weird issue when rendering a JSP. I get the following error on load Error: org.apache.jasper.JasperException: javax.servlet.ServletException: java.lang.NoSuchMethodError: ...
-5
votes
0answers
12 views

Best script JS for fadeIn between pages in Phonegap [on hold]

I'm creating a Phonegap App, and I want emulate the page transition effect that set between activities in JAVA and I'm sending a script (no AngularJS) for this ! Solved for me. If any have the dude, ...
0
votes
1answer
22 views

Multi Line Text Area using htmlunit

Requirement: I have a multi line textarea in the webpage with some default value , i need to change that values and submit the form. The text area defnition is as below. <textarea id="editorarea" ...
0
votes
0answers
23 views

Feature usage tracking service [on hold]

I am working on a SaaS product and want to track the usage of the features of it. Is there an SaaS product, which offers a java library and/or an REST API to track feature usage frequence, with ...
0
votes
0answers
9 views

dojo/store/JsonRest Server-side interaction

I am stuck trying to understand how to use JsonRest. I'm trying to retrieve data and populate grids automatically before I post a form request to (add a new user). I'd like the admin to see which ...
-1
votes
0answers
71 views

Java: Html/Javascript slider [on hold]

I couldn't find my answer for this, so I hope you guys can help me find it. Here's what I'm searching for: I want to build a JLabel/JPanel with the same slider on the bottom. Or is it even ...
1
vote
1answer
44 views

AngularJS, UI Bootsrap, MVC Frontend - data-ng-click is not working

I am trying to register user (take some information from form input at frontend and send it to backend via AngularJS) but I am experiencing some problems. Here is my index.html file: <!DOCTYPE ...
0
votes
1answer
43 views

Getting large form to Spring controller

I have a form whose purpose is to allow a user to create a new entry in a database table. The form is very large, ~50 fields in total. I'm needing a way get all of these values to my controller, ...
0
votes
0answers
27 views

XML to XSL format

My response for the jquery call will be in XML format as below <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <transactions> <transaction> ...
0
votes
1answer
33 views

How to preserve order of hashmap in JavaScript?

Java has LinkedHashMap but there doesn't seem to be a similar solution in JavaScript. Basically, I want to be able to say var map = {}; map['a'] = 1; map['b'] = 2; Then when I iterate over the ...
1
vote
1answer
21 views

Creating URI with a list query param for JAX-RS

So JAX-RS can accept a query param as a list. It does this by flattening fields so that users/query?from=100&to=200&orderBy=age&orderBy=name becomes from: 100 to: 200 orderBy: ["age", ...
-2
votes
0answers
9 views

InvalidPathException :No action config found for the specified url

SEVERE: Servlet.service() for servlet action threw exception org.apache.struts.chain.commands.InvalidPathException: No action config found for the specified url. at ...
0
votes
0answers
47 views

Why does document.getElementById function returns something unrelated to arguments?

I am trying to retrieve DOM element and pass it to third-party js script. I'm running javascript from java and first I use document.getElementById function to find it and then use it in another ...
0
votes
0answers
24 views

jquery is not working in jsp when the page is loaded via requestdispatcher.forward

I am working with servlets.I have created a jsp page and it includes some scripts for jquery.Every statements using jquery is working fine when the page is loaded from servlet using ...
0
votes
1answer
26 views

Angularjs ngResource

I'm new to Angularjs and I've been looking for some examples, I've seen some questions related to mine but not of the solutions given has worked for me and I really need help so I hope someone give me ...
-2
votes
1answer
26 views

android webview JavaScript fails [on hold]

I'm facing a very disturbing problem with an app i sent to the play store. First i try to correct a huge bug with my display on some devices and i have another problem who cames out with my apk ...
-3
votes
0answers
27 views

Converting javascript function into java function

I am currently writing an application using java and swing and need this function for it to work. I found a similar function to what I need in javascript and cannot make it work in java: function ...
0
votes
0answers
33 views

How do I modify a fillable field to execute javascript?

I want to either edit existing fillable field to addAnnotation with javascript for validation OR remove and recreate the field to add the Annotation, but retain all other original field attributes ...
0
votes
0answers
10 views

Rhino and JsHint syntax error Property “lines” already defined in this object literal

I've been trying to implement JsHint as a build task for our web content, using philmander's ant task. Unfortunately, I have not been able to get it to work. The folder it runs in is version ...
0
votes
1answer
23 views

How to get data from HttpServletResponse from ajax form

I have "first.jsp" with a form with hidden input values and method pointing another jsp. <form id="popupForm" name="popupForm" action="<%= cqRequest.externalizeHref(handle) %>" ...
0
votes
1answer
16 views

Node.js remote server not working (Etherpad Lite)

I'm running a server-side application on a remote server, using a particular port - call this port 9000. Using a separate laptop, I've been able to telnet to a simple Java hello world TCP server and ...
0
votes
2answers
29 views

Java -Out of Memory when passing file from UI to webService

Hello all I have a WS that works fine that needs to be used for another application. This application uploads 20mb .CSV files. If I alter the file to say 10mb the files makes it to the WS and ...
0
votes
1answer
20 views

How to launch javascript script and pass DOM element from java while having plain html?

I am automating web application which uses SmartClient and now I need some robust method to build locators for forms and populate input fields. We have test framework based on Selenium and ...
2
votes
1answer
31 views

Implementing WebRTC Signaling using WebSockets

In order to connect peer to peer for communication using the WebRTC API, you need to implement signaling. Signaling needs a two way communication channel to work. WebSockets are a two way ...
2
votes
1answer
58 views

Client side encryption: Javascript vs Java Applet vs Adobe Air

I'm considering to implement client side encryption in a web project that I am developing. The goal is to ensure that data is "private" to the user and the server has no way to decrypt it. At first I ...
-1
votes
3answers
27 views

display raw xml in popup window using java when a link is clicked

I am using struts 1.x and jsp as view to display. Want to display the entire xml file as it is in a new pop-up window when a link is clicked in jsp. So far I have managed to open the pop-up window ...
0
votes
0answers
4 views

Vaadin Googlemap Plugin Conflicts With CVS Keyword

I use Vaadin Googlemap plugin for my project. Everything is running smoothly on my PC until I checked in the javascript files into CVS. It turns out the plugin developers didn't anticipate that ...
0
votes
1answer
17 views

Verify javascript code at server

I have a text area in my web where user can add java script code. I need to check if this code contains any malicious code or not. What are the options at Client end Server end Or where can I ...
-1
votes
0answers
21 views

Java communication with Photoshop script (JavaScript) [on hold]

What I'm looking for: I'm looking for a more efficient/less error-prone way to handle communications between Photoshop scripts (basically JavaScript run in Adobe's own environment) and Java ...
1
vote
1answer
23 views

How to use jwplayer with rest query?

I'm trying to involve JWPlayer to my web site. I tried to get my video file from server. Here my javascript: <div id='player'></div> <script type='text/javascript'> ...
-1
votes
0answers
26 views

How to program a page redirect in a jsp

I am not sure how to go about this and not even sure if this should be done in java or javascript. My goal is the following: Given a URL host/path?Type=a&Year=bif the user were to have misspelled ...
0
votes
1answer
12 views

java websockets onMessage return InputStream to frontend javascript

I have come across a few posts, none of which has really answered my question, I have also been in the process of raising the question but putting it off only to research more dead ends... So here is ...
0
votes
2answers
35 views

IBM Filenet Content Navigator Custom Plugin - GridX row goes blank after editing properties

I'm working on an ICN plugin and having trouble fixing this glitch, every result loads the way it is supposed to on the grid widget but as soon as I make any changes to it on the right panel and save ...
-5
votes
1answer
49 views

How to pass java arraylist to jquery variable [on hold]

I am having a textbox which is more like a searchbox as we enter text it show result matching the text or character that is entered. For this I am using jquery method which gets called on keyup event ...
0
votes
0answers
35 views

using PHP in android app, security issue? [on hold]

I'm developing an app for android which has connection with server and a database on it. It also has a copy of that database in the client side (a .db file). To update the local DB and send requests ...