-2
votes
1answer
15 views

get output of javascript on android

I have this javascript code: <html> <head> <script> for(i=0;i<6;i++) { document.write("my number is "+ i ); } </script> </head> </html> I want to take the ...
0
votes
0answers
4 views

Parse a page (partly generated by JavaScript) by using Selenium

I've got a problem: I want to parse a page (e.g. this one) to collect information about the offered apps and save these information into a database. Moreover I am using crawler4j for visiting every ...
0
votes
0answers
8 views

Intercepting HTTP response body in DropWizard 0.7.0/Jersey 1.x

I'm building a web service with DropWizard 0.7.0 that produces JavaScript output using a Mustache template. I'd like to minify and obfuscate the generated JavaScript. In Jersey 2.x's manual, I see ...
-3
votes
0answers
24 views

How to replace a particular format after doing some manipulations with it

Consider a string String sampleStr = "<hi><dataKey>personName</dataKey><value>Charlie</value><dataKey>personOccupationDetail</dataKey><value>Under ...
-1
votes
1answer
18 views

Getting Latitude and longitude from google maps [duplicate]

My task was to generate Latitude and longitude when a user enters the address and store it in database.I looked around and Google Maps API has given the implementation for this. But the issue is it ...
0
votes
1answer
14 views

Ajax request doesn't work with Spring controller

Can't understand why this code always prints in console "Error!". Here is my Spring controller @RequestMapping("/spinner") public class SpinnerController { @RequestMapping(method = ...
0
votes
3answers
22 views

JavaFX WebView catch post request from javascript

I'm experimenting with JavaFX for the first time and I am intrigued by the WebView class. I would like to be able to use it to locally host a HTML5 site that would essentially be the front end for a ...
0
votes
2answers
28 views

Cannot get my base64 string to decode on my javascript client

I am sending data from my java tomcat server to my browser using a WebSocket. I get the error: "Uncaught InvalidCharacterError: 'atob' failed: The string to be decoded is not correctly encoded." Here ...
-5
votes
0answers
28 views

populate dropdown in Java (jsp) and fetching from database

I have 3 drop downs. On selection of any option from the first drop down the second drop down should automatically list the options that is related to the selected option from the first drop down. And ...
0
votes
0answers
2 views

Javascript to validate required field entry on a VF page not working

I am trying to add some javascript for my visualforce page that is also a force.com site. I have tried several different ways to get a field is required message to pop but it does not work. I pasted ...
0
votes
0answers
24 views

Can I use XSLT to transform a HTML5 file to an open document (odt)?

I'm planning to write a web editor for odt documents. I've tried WebODF so far (I did not find any other usable editor which works in a browser) but it does not support editing tables. My next idea ...
-1
votes
3answers
59 views

How to send java object in angular JS

I have JS file that is trying to do a POST method, but needs a specific java object as input. here is the signature of the Post method in the server: @Path("/branches") public class BranchResource { ...
0
votes
1answer
12 views

DWR response to javascript variable

I have asked for this severals weeks ago, but nobody couldn't help me. This is very important thing to me, and it's still without any working solution. In ViewDwr I have simple method which are ...
0
votes
0answers
23 views

autocomplete query does not show list which is in another jsp but show list if we write down on same page

In this Jsp code, I don't get any error when source is given as 'a','b' etc but it shows nothing when using another jsp like this $('#cname').autocomplete({ source: 'list1.jsp', select: function ...
0
votes
0answers
22 views

List Data in Stacked Bar Charts in Extjs

I'm getting the problem with ExtJs Stacked Bar. How to show list data in stacked bar with the name. Plase see code below. Here is my Java Model. public class StackedChart implements ...
0
votes
0answers
7 views

JSON backing in jsp while consuming client side RestfulSpringWebservice

I am having signUp.js file and in signUp function I am getting a jsonResponse profileId and ProfileName.After getting the Response I am redirecting it to loginSucess.jsp page by invoke redirectView ...
0
votes
0answers
22 views

Stepping Through JavaScript Code Evaluated by ScriptEngine

I have a desktop Java application that essentially is meant to be a dispatcher for a number of threads. Each thread is responsible for reading a JavaScript file and interpreting/evaluating the ...
1
vote
1answer
32 views

How to load select options value dynamic in javascript

I am using java + struts. i am create dynamic table row and load to selection option values dynamically using javascript my code is. function addRow() { var table = ...
0
votes
1answer
11 views

Set up catalina environment in ubuntu

I have set up Tomcat7 and now i am being told to set up the CLASSPATH for Java servlets in the .cshrc file.But i don't have any .cshrc files.SO where do i set them up.Will setting it up in bashrc ...
0
votes
0answers
21 views

Stream image from server (Java) to client (Javascript) using websockets

I have done this before with a vanilla servlet where on the doGet() method I used a InputStream and OutputStream and set the content type and my png would appear in the browser as fast as I could ...
-1
votes
1answer
23 views

Confused about websockets and java

I have been looking at tutorials like this, java websockets using Tyrus and I see a server implementation, a java client, and a javascript client. I was expecting only a server implementation and a ...
0
votes
1answer
54 views

Printing rows count above each table

I need your help and assistant in viewing the number of rows on each printed table at the top of it. I am using the below code to get the rows count: function count() { var tables = ...
0
votes
0answers
10 views

How to unbind action move from android - java

I'm wondering if I can unbind/disable the MotionEvent.ACTION_MOVE: from android java. My code public boolean onTouch(View v, MotionEvent event) { switch (event.getAction()) { ...
0
votes
1answer
33 views

how to get the array values in jsp

when i execute this ,only the last value in array is coming as output when i use request.getParameter("quantity") in jsp file. My question is, how to pass the entire array values to jsp file? help me ...
0
votes
0answers
13 views

Uploading Image and using Custom Search Api

I want to use Google Custom Search Api , I have the API key. Now I want that When I upload some image(through java code) and get the results like I am getting results for the text.(As google do). I ...
1
vote
5answers
84 views

Regex replace new lines in between start and end

I have a string that includes new lines. Between the lines that are """, I want to add semicolons just before \n. Example input string: print and not affected """ This is my game dead or alive ...
0
votes
1answer
31 views

Issues including JSP file

Trying to learn JSP pages now and for some reason I can't get my code to execute. I'm trying to just call a function on the JSP page to update within a div. I have this running in Tomcat 8. There ...
0
votes
2answers
28 views

Spring 3.2.0 no uri found

Following is: appServlet-servlet.xml <?xml version="1.0" encoding="UTF-8"?> <beans:beans xmlns="http://www.springframework.org/schema/mvc" ...
-7
votes
0answers
20 views

Insert into MSSQL using JDBC from javascript [on hold]

I want to insert data from ``JSP form, For this i have created a JavaScript function but in database null values is coming. I want to do this job in same jsp page not want to add any other servlet ...
0
votes
1answer
34 views

how to print some elemets in gwt

I want to print one panel of page in GWT. I googled it and I can't find any answer for my question However someone said that you must use iframe because it has print method. I tried this code but it ...
-1
votes
2answers
26 views

webdrivr click the button which will call Javascript can't work

(1) html: <table class="title_button" onclick="onSave();" onmouseout="this.className='title_button'; save_moveout();" onmouseover="this.className='title_button_hi'; save_movein();" title="Copy ...
0
votes
0answers
17 views

Issue with fileUploadInterceptor struts2 when using checkboxes

I'm encountering an issue with fileUpload interceptor in Struts2, when I try to upload a file as an attachment to many "documents", which I call "greatFile". This is my code in struts.xml : ...
1
vote
1answer
14 views

Execute bower update from ANT task

i want to create an ANT Task that permit to execute bower update in my project. I've written this target: <target name="update-static-web-dependecy" description="Update static web ...
-8
votes
0answers
34 views

Clear the browser history when I press a button [on hold]

I have a "SUBMIT" Button in my application. I face a problem that previous entered value are coming when I press a submit button for fresh page. Either I should refresh the page or reload it. Without ...
0
votes
1answer
37 views

Why do I can not to pass parameters for XMLHttpRequest through the get method?

I am working in Netbeans IDE and i have wrote JS-code for sending HTTP Request to server: var idFilterJS; var isIE; var eventsTable; var req; function applyFilter(){ idFilterJS = ...
0
votes
0answers
46 views

Save user details from javascript into java

This is my situation: I have a website stored in my mobile, I'm using "kws" to make my mobile as server, ofcourse when i turn on the hotspot in the mobile. When an user will connect to my hotspot ...
0
votes
0answers
14 views

Save Image from clipboard by calling applet method in javascript not working [duplicate]

I have an applet code to read image from clipboard and save it to the file system in Windows. I run the applet independently and it works fine and saves the image in specified location. However wen i ...
0
votes
2answers
28 views

Is it possible to create a timer in jscript that you can manually change without it being affected by timezones?

is it possible to create a timer where I can manually set the hours each day to a set number of hours but still remains accurate? For example; if I set the countdown for 5 hours at 2pm I want the ...
0
votes
0answers
23 views

Solved - Javascript and cookies are enabled, but they still aren't? Meta refresh?

I am trying to make a web scraper using my university's website. I am having trouble even loading the sign-in page because it says I do not have javascript and cookies enabled when I believe I do. ...
0
votes
0answers
8 views

Android internal storage html file fail when get other internal file

My app have webview fragment and I want display local html in it(I use my own provider to do that LocalFileContentProvider http://blog.tourizo.com/2009/02/how-to-display-local-file-in-android.html) . ...
2
votes
1answer
51 views

Handling JsonResponse in clientSide view technology of SpringMVC

I am trying to implement the below scenario in Spring MVC.But I am facing issues and not able to decide about the right Approach. I am Using jsonRequest/jsonResone(Restful Webservices) 1.I have a ...
-1
votes
1answer
13 views

Websocket Alternative for old Websphere Servers [on hold]

I need to push realtime Messages from server to client. The app needs to be downwards compatible to old versions of the IBM WebSphere Application Server, so Websockets can not be used. I looked at ...
0
votes
1answer
13 views

Concurrent RDP Sessions Using Multiple VM Instances

I was wondering if anyone has any pointers/resources/examples/advice on whether the following scenario is feasible programmatically: Given one computer running Windows or Linux Launch multiple VM ...
1
vote
1answer
20 views

Calculate HMAC-SHA1 Signature using JavaScript [duplicate]

I am writing a JavaScript Client Application that needs to communicate with Server. I tried to implement the API, but i stuck on one method and I need help. Infect i don't know how to translate this ...
1
vote
1answer
23 views

Not able to update registration ID automaticaly using last value from database

I want to use the updated registration ID in the registration form i.e. ID after adding one to the last ID in database. I have taken login ID as a label, I guess one can not use ...
0
votes
1answer
8 views

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource a

I have written a font file in the response in my code.The response code is working fine.But when i call that code from its url,i get the following error: "Cross-Origin Request Blocked: The Same ...
0
votes
1answer
22 views

Google Apps Script Errors all of a sudden?

I am receiving the following error that have started out of the blue. I do not know how to resolve of fix them. These are for Import Range functionality and have been working fine until now... Error ...
1
vote
2answers
19 views

How to mimic scrolling with Apache's HttpClient library?

Some webpage feature a limited amount of content to start with and only show more when scrolling, for example ...
-7
votes
0answers
21 views

how to use java script file in text format in java [on hold]

I want to design a program in java that check security of java script code of websites, white box. For that, I use servlet and in doget I want to capture java script file in text format....but this ...
1
vote
3answers
40 views

can not perform form validation

I tried performing form validation on a registration form in jsp using javascript. I am not able to do it. The page, despite the fields being blank, is directed to next page on clicking the submit ...