0
votes
0answers
14 views

how to get original image crop selector if image resized in html div ?

I have one image (5177 x 3451 ) which is resized (1000 x 667) into html div i mean it is given width and height so that user can crop image properly..so how to get actual crop selector on original ...
0
votes
1answer
7 views

validating jstl sql datasource using javascript

I am trying to retrieve data from SQL query executed and validate the result with input I am making within form. I keep getting no return, in other words, it just returns empty value. Could you please ...
-3
votes
0answers
15 views

How to get username and password to auto submit a form in JSP [on hold]

I have an application where i should enter username and password to login. It is JSP page. I have 3 portals in that application. I can access these portals directly: then i get different login JSP ...
0
votes
1answer
11 views

How do you append page context to URL String in JSP that is not in a DOM tag

I am using the page context to reference certain resources on my Tomcat web server. For instance I use it to get an image as follows: <img ...
0
votes
1answer
7 views

Android: retrieve html of website certain time after request

My goal is to retrieve the html of a website in a readable String (which I have done), and to modify the code slightly so that the html is retrieved a certain time after the Get command is made. ...
0
votes
0answers
23 views

How to include checkbox in the title of dojo content pane present in AccordionContainer?

I tried some code similar to this: <div id="markupAccordion" data-dojo-type="dijit/layout/AccordionContainer" data-dojo-props='style:"width: 400px; height: 300px; overflow: hidden"'> ...
-1
votes
0answers
33 views

Real-time two way communication in html/javascript

I am developing a Card Game and I designed my User Interface in HTML5. now I want to pass data to html page without refresh. I am using websocket to do the same but i has some problem when i hit the ...
0
votes
1answer
25 views

how to clear the <select> tag before filling the another value through <option> tag

On clicking these radio button it just call servlet and fill the Dropdown list to its content. but the problem is on clicking the 1st time it is filling as expected but if I click againg the radio ...
-5
votes
0answers
47 views

Coding in Java and JavaScript [on hold]

So what I want to do is not totally necessary, but I would at least want a proof of concept. I want to know how would one go about making a program in multiple languages, primarily Java and ...
0
votes
0answers
22 views

how to import all files in activity?

hi I created a zim file Wikipedia reader where one can choose only one zim file from the list to read articles but due to size limitation by Wikipedia I created zim files into small one. now I want ...
-1
votes
0answers
28 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
3answers
19 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
60 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
39 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
55 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
42 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
49 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
27 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
22 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
7 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
45 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
25 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
13 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
23 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
11 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
73 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
48 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
50 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
34 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
22 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
27 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
11 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
21 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
0answers
36 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
60 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 ...