Questions tagged as 'java'

2
answers

How to pass a file from the JSP to the servlet?

I have a .jsp page where I have an input file. I need to open this file to use the information in it. Suppose it's a pdf. I get this pdf, sending it to the servlet for the purpose of using it in my JAVA application. The easiest way would be to t...
asked by 08.07.2014 / 17:01
1
answer

How do I populate a JTable?

I have a fairly simple java application that connects to a database, in the console I type the query I want to pass by parameter to the executeQuery. Now I need to pass all this to a graphical interface. Is there any way I can create just one wi...
asked by 10.06.2014 / 06:03
1
answer

Make URL open in the same Activity

I'm creating a WebView for Android. When I load the App, the imported page works fine, but when I click on some link of the page, that same link opens in another browser.
asked by 18.08.2014 / 15:50
1
answer

Include jar file in Maven project

How do I include a single .jar in a Maven project? Note: The jar I need to include has dependency on 3 other jar files. The jars in question are from the project Brunette Attempt # 1 I created a lib directory and put the jar...
asked by 02.07.2014 / 16:18
3
answers

BD for distribution along with java application

Good evening guys, I have a small JAVA application in which some data is inserted. I would like to distribute it with a DBMS that does not require downloading and installation / configuration. I've been researching and found HSQLDB, but I hav...
asked by 05.11.2015 / 04:33
2
answers

How to retrieve specific parts / values from a string?

I have ArrayList where I am adding a custom list that is displayed in a ListView . What I need is to pass the value of the selected item to another screen. See below the method that will call the other screen: public void onIte...
asked by 18.05.2015 / 22:18
2
answers

Doubt interpretation function

I have a HashMap users: private Map<String, ObjectOutputStream> utilizadores = new HashMap<String, ObjectOutputStream>(); Can anyone tell me what this function works for? Here, under no circumstances does Hashmap change? pri...
asked by 13.12.2015 / 21:04
1
answer

How to use the Scanner to capture input from the keyboard? [duplicate]

I would like to know how to use Scanner in java to simulate cin and cout of c ++     
asked by 17.02.2016 / 23:26
2
answers

Is it possible to run Acrobat Reader without putting the entire path of your executable?

I am opening files in PDF format by Java and for this I am running Acrobat through Java also, follow the path line to the Acrobat executable: String cmd = "C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe"; However, someti...
asked by 19.08.2016 / 22:26
1
answer

Refresh in WebView when rotating device

I created my application via WebView , but when I rotate the screen the site gives refresh , that is back to login , my code: MainActivity: package com.sirseni.simpleandroidwebviewexample; import android.app.Activity; im...
asked by 05.06.2017 / 18:21