Questions tagged as 'java'

0
answers

How do I overwrite a .txt file on android?

in my APP I receive a socket periodically through String . I need to save only the last received String but with the functions that I have obtained I am adding rows and Strings to the file. How can I overwrite the file every time I...
asked by 13.06.2017 / 17:11
0
answers

If dynamic in java

Suppose I have a list of people (NAME, AGE, FACILITY, CITY, SEX): new Persona("Paco", 35, 05-05-1991,"Lisboa","H") new Persona("Luis", 5, 05-05-1981,"Madrid","H") new Persona("Pepe", 25, 05-05-1971,"Lisboa","H") new Persona("Maria", 85, 05-05-...
asked by 13.06.2017 / 15:14
0
answers

Errors when converting a project to maven

I'm working with html, javascript, struts1, oracle11, jQuery, spring, tiles, etc ... And I have the following problem. Trying to convert it to maven project automatically with eclipse throws me the following error: Exactly the error...
asked by 13.06.2017 / 10:09
2
answers

Working in console with Java

What I want to do is basically that anterior impreso en consola se borre , that is, if for example I write a program that prints a "Hola mundo" in the console, that the next instruction after System.out.println("Hola mundo");...
asked by 21.06.2017 / 00:59
1
answer

Docker and Intellij IDe

My problems is I need to do the deployment of a Java app, I have my DockerFile ok, but the problem is that when I'm creating the run docker configuration in the help window only in the deployment section only aparace an option that...
asked by 09.07.2017 / 16:33
0
answers

send files from my service in eclipse to android

I have a dilemma. I am trying to send a file that I have in my database to my android application. I have my service that gets a byte [] but when calling it from my android application, it goes down. I do not know how to send this file, whether...
asked by 05.06.2017 / 17:55
0
answers

Define doPost method, doubt with the action method

As I can do a doPost method correctly, I want to declare an ajax request to return a name, a sum and a product with servlets, I get an error when declaring the else, my files are index.jsp <%@ page language="java" contentType="text/htm...
asked by 04.06.2017 / 22:09
1
answer

Refer to the resource directory Android module / library

I have an Android module aboutscreenlibrary , which is to implement an information activity about the app. Module: aboutscreenlibrary With a AboutActivity activity that loads a menu to see what's new, which should be obtained from...
asked by 06.06.2017 / 17:18
1
answer

How to pass data from a JTable to a JDialog?

Hi, I'm trying to pass data from a JTable to a JDialog (attached code). I've also tried this code with a JFrame and all the data passed to the latter (I've already put public and static to both JTextField ), so is there anything wrong...
asked by 25.06.2017 / 08:12
1
answer

optimization of the session creation file in hibernate?

good, I currently have this file that creates my session in hibernate. my question how could I optimize this, because when I run the application is echoed with the pattern DAO, in each instance of the class that is the creator of the sessi...
asked by 16.06.2017 / 13:49