Tagged Questions
1
vote
0answers
12 views
Calling javascript function from Java in Play Framework 2
I'm making a little messaging aggregation app in Play Framework 2, and basically what it does is :
A python script gets data from the web, basically just text.
It send the data to a route in the ...
0
votes
0answers
17 views
Is there a way to NOT refresh the page in JSF with commandButton?
I have a js that changes the style of a link, it works, but when the command button is pressed and the value is changed, the whole page refreshes and the changes from the js dosent save.
Is there a ...
0
votes
0answers
13 views
play framework redirect not working
I'm developing an Application that harvests information from Twitter. I want the user to be able to indicate which parts of their profile I should use (for example they may not want their tweets to be ...
1
vote
1answer
24 views
How to store a string to file in android java code and call it for parsing in javascript
I am trying to implement a jQuery Mobile application in which I am parsing an HTML code of a page to find only content of a div using div-id (in example main-content-inner). I am doing so in ...
0
votes
1answer
21 views
Uploading Files trough GWT-RPC?
Uploading files with GWT is usually done with a FileUpload inside a FormPanel like this:
// Create a FormPanel and point it at a service.
final FormPanel form = new FormPanel();
...
-2
votes
0answers
20 views
Websocket unexpected responce code 404 [on hold]
there. Did you resolve your problem about Unexpected responce code: 404 ?
I'm at this moment browsing the internet in order to resolve the same feature.
0
votes
1answer
17 views
the JSONArray is empty when I get it in js function from struts2 action,I cannot figure out why
this is my struts.xml
<package name="ajax" namespace="/" extends="json-default">
<action name="checkMembers" class="com.mytest.action.InfoCheck">
<result name="success" ...
0
votes
1answer
49 views
Text to JSON formating
I've read a lot of discutions and got some answers..but I'm still wondering can I have text like this:
ps:mandatory' child of Input command functions
Properties
ps:Source:
f47437
ps:Created:
...
0
votes
1answer
45 views
Convert var javascript to java variable
i am using jsp format eclipse 3.2 tomcat server 5.5. I have a problem to convert var variable (javascript) to int variable(java). what is the correct way to do this?
In html body, i use this method ...
0
votes
2answers
42 views
Jquery date validator not receiving value
I need to make a validation for two dates: start_date and end_date, after I write them in the inputs. The validation is working fine but I would like to have the option of giving the end_date the ...
0
votes
0answers
17 views
Weird exception when using Rhino and Mozilla JavaScript api
I am using Mozilla Rhino for a project and I'm trying to convert a String to a JSON object.
The piece of code that does this is:
public class RhinoJsonObjectCreator implements IJsonObjectCreator {
...
-2
votes
0answers
19 views
What shall be the backend for the event scheduler app [on hold]
I am working on a project which has two user interfaces and I have to schedule an event.
1st user provides 'city' and 'date' and 'subjects'
2nd user also provides 'prefered city' and 'date' and 'area ...
0
votes
0answers
14 views
getting web-services and phone gap working under android emulator
I have soap web-services by using factorial program so that program i need to develop client side i.e phone gap and web-services working under android emulator. so will insert client(i.e phone gap) ...
0
votes
1answer
44 views
NodeJS programming model for a Java developer [on hold]
I m very well versed with Web application developing using Java/Java EE, etc and multi-threading concepts. But recently, NodeJS is getting lot of traction.
Being a Java developer,
how do I think ...
-5
votes
0answers
37 views
Guidance needed to get started with the project [on hold]
I have to do a university project wherein i need to get inputs from colleges and professors of various colleges. The inputs from colleges that are to be taken are ...
0
votes
0answers
21 views
Ajax call for typeahead feature
I am trying to implement typeahead feature in my search engine using solr. For that purpose I have defined my custom response class as shown below:
public class TypeAheadResponseWriter implements ...
2
votes
4answers
54 views
JavaScript on Netbeans Functional Difficulty
I have difficulties coding in JavaScript with Netbeans. I can't see beforehand:
my mistypes,
relations between classes, functions and variables (dependency, parents-children etc.),
javadocs ...
0
votes
1answer
21 views
Fetch Local Storage Items before Android Native App
HTML5 app (Cordova Supported)
is running on Google Play and i do hold lot of local storage items of user . Now i am going to release Android pure native app so i don't want user to register again for ...
0
votes
1answer
31 views
When converting from Java Class, can gwt generate pure javascript but not html?
I find that GWT will generate multiples HTMLS and use frame injection to invoke the JS logic in the caller HTML. But most of the browsers will not allow you to do frame injection on a local file ...
0
votes
0answers
25 views
String replace doesn't work when pass string through android webView JavascriptInterface
I got a string replace issue when I pass Java String into android webView through JavaScriptInterface.
Below is the HTML (utf-8 file) inside the webView:
<html>
<head>
<script ...
1
vote
2answers
43 views
How can one implement in Java the same as JavaScript String.replace(RegEx, function)?
I would like to do some simple String replace with a regular expression in Java, but the replace value is not static and I would like it to be dynamic like it happens on JavaScript.
I know I can ...
0
votes
1answer
55 views
AngularJS service with Java (REST)?
I generated a simple java REST service with netbeans and it is working and now I need to make a AngularJS controller and service to get some data (nothing special).
I never used angularjs before and I ...
0
votes
1answer
38 views
AJAX - ok on server side, returns error on client side
I have a problem with an AJAX: In server side I get a result but in client side (javascript) it returns an error.
Server side:
@RequestMapping(value = "/nrConturi", method = RequestMethod.GET, ...
0
votes
0answers
11 views
Simulate browser using RingoJs
I create a server that accessing a site as if the site is accessed by a browser. Some sites that my server need to access is required the execution of javascript, my question regarding RingoJs is: can ...
0
votes
1answer
17 views
closure-compiler wouldn't switch off suspicious code warning
I use the closure compiler to compile different js files into one short file. Admittedly this is not very effective for an already compiled file but never the less it should work.
I got the command ...
-4
votes
0answers
27 views
Web Site Content Crawler Tool [on hold]
Generally i want to discuses with you about my current project, i want to make a Web Site Content Crawler that can fetch information like shopping cart websites what a shopping website contains ...
1
vote
2answers
30 views
How to access and extract emails from a SMTP server using APIs
How can I extract extract emails and attachments using an API from a SMTP (Mail) server?
I was trying to figure out how Posterous worked. I found this open source project but it had no source code.
...
0
votes
1answer
35 views
Countdown Timer in J2EE
I am working on an Online Examination project in J2EE and I want to put a countdown timer which allows a user to see the Time remaining before the exam gets submitted..
What is the most efficient way ...
0
votes
2answers
42 views
How to disable / Enable plugins?
We are creating a web application. In there, we would like to disable some plugins installed in the user's browser when the user visit out site, such as video downloaders. Is there anyway we can do ...
-1
votes
1answer
45 views
Checkbox states retrieval issue using javascript
I have check boxes against folders in the tree structure.Can someone suggest me for one issue which I am facing in the check-box states. I need to retrieve the checked states for the check-boxes from ...
0
votes
2answers
50 views
regex certain character can exist or not but nothing after that
I'm new to regex and I'm trying to do a search on a couple of string.
I wanted to check if a certain character, in this case its ":" (without the quote) exist on the strings.
If : does not exist in ...
0
votes
0answers
12 views
new HttpSession created for audio request only in safari
In Safari 6, using audio tag, trying to play audio file. When audio is request from server, it creates new session which is not matching to existing user session. We have few data which is present in ...
-1
votes
0answers
29 views
Java or Javascript library for file diff similar to github version compare implementation [on hold]
In my project i have requirement to compare and show the difference between two versions of files similar to how it is implemented in GitHub. I have explored and found that some of the good library ...
1
vote
0answers
41 views
Google Guava 15.0 Error with GWT 2.5.1?
I tried to use Guave 15.0 with GWT 2.5.1 but it fails to compile. I use the compiler parameter -strict. In my module gwt.xml I have:
<inherits name="com.google.common.collect.Collect"/>
I my ...
-1
votes
1answer
26 views
reusing Text field value in same jsp page
How can I use the value of text field which I enter from GUI again for further computation? I have following piece of code
<tr>
<td> Enter Index Value:</td>
<td><input ...
1
vote
2answers
43 views
Submission of a jsp page after a particular time interval
I have used setTimeout method to do this and passed a variable which contains time but my settimeout method takes only the initialized value of that variable and not the value that is fetched from ...
0
votes
1answer
26 views
Strange result of Javascript split in Ant
Javascript´s split function behaves different while splitting a literal and splitting a string read from a file.
I have the following file with a character, a colon and a newline:
$ cat line
a:
$ ...
0
votes
0answers
12 views
MGWT Scrolling Bug on iPhone iOS7 Cannot reach Bottom of scrollable Content
I use GWT 2.5.1 and the MGWT 1.2-Snapshot on a mobile web app on iOS7.
The problem is that when I scroll down I cannot reach the bottom of the content because it is hidden by the iOS7 Safari bottom ...
1
vote
1answer
34 views
Android : callback function from java script to java
I have created an application in which i am using webview and loading a simple static html page. I am calling a java script function from activity but i am unable to call a function from java script. ...
0
votes
1answer
23 views
The controls collection cannot be modified because the control contains code blocks(i.e, <%…%>)
I have this problem which seems to be a common one, I have fixed the said issue but by fixing it I have made another issue and I'm hoping someone knows a way to fix it.
I have images on a webpage ...
0
votes
0answers
12 views
spring tag form:checkbox onchange not working in IE
The following code is not working in IE8 using spring form tag.
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<script type="javascript/text">
function ...
-5
votes
0answers
31 views
API for any chat application [on hold]
we are developing a website for developers and testers where they can interact with each other for business purpose.For this we are eager to provide a chatting functionality on our site between these ...
0
votes
0answers
30 views
json parser error while making ajax request?
Folks i am getting "parsererror" exception while making ajax request to server.On my dev box
its working fine but at pruction getting this issue for some users(not reproducible at local box)
I did ...
0
votes
2answers
41 views
Unxpected token : for JSON string in Javascript
I have a json file which is generated by Java component and I trying to parse that json file via Javascript. But if I use this code:
var foo = JSON.parse('js/test.json');
I am getting this error:
...
2
votes
0answers
28 views
Struts 2 optiontransferselect tag not working in jsp?
I am trying to execute the following jsp code which contains the optiontransferselect tag. However I am getting the below exception:
org.apache.jasper.JasperException: /abc.jsp(10,0) No tag ...
1
vote
0answers
29 views
Is there a way to control a Java program's file read/write/run permissions?
In theory it shouldn't be difficult to write a perfectly isolated sandbox. Unfortunately, people want features like file read/write access and Runtime.exec(), which then require a complicated (and ...
0
votes
2answers
29 views
Use the event onselect in JSP to modifiy another controller
I have 2 comboBox in JSP and I want to add the item selected in "list" to "list2". I don't know how to do that in the function "change".
<select name="list" onselect="change(this)">
...
0
votes
0answers
35 views
Why is the package javax.script not accessible in Java7?
Why is the package javax.script package not accessible in Java7? Is it obsolete? Are there alternative?
In Eclipse I receive the follow error message:
Access restriction: The type ScriptEngine is ...
0
votes
0answers
21 views
Java / Node.js - Procedure call
I have an own written Java container which uses Inversion of Control (IoC), thus the container expects an implementation of a certain interface.
Example of the interface:
public interface OnWrite {
...
0
votes
1answer
27 views
How to capture the event of closing an opened excel file in java web application
I'm working on a java web application. For security reason, when user clicking on the open file link from the webpage, the application will copy the file from the security folder to a temp folder, ...