Questions tagged as 'java'

1
answer

Parameters in Static attribute

I have the following attributes in my class: static String URL="jdbc:jtds:sqlserver://blablabla; databaseName=Pxx"; static String usuario; static String password ; static String DRIVER="net.sourceforge.jtds.jdbc.Driver"; I would lik...
asked by 28.09.2016 / 19:46
1
answer

How to use HTML files from the assets folder in a WebView

I know there are a lot of questions like this, but in all of them I did not find any method that would help me. How are you in activity: package com.example.guilherme.webviewteste; import android.support.v7.app.AppCompatActivity; import...
asked by 03.10.2016 / 19:51
1
answer

Jersey2 is different from jersey v2.x?

I'm trying to implement Swagger in Jersey and there is implementation for both Jerseys. Want to know if Jersey2 is different from Jersey v2.x? or it's the same thing.     
asked by 14.09.2016 / 17:17
1
answer

User to see only Items of the Operational unit that is in your register

I have a vehicle management system. The company in which I work has several business units, so the user can only see the cars of the unit on which he works. This I was able to do, but whenever someone logs in the system it replaces the data of t...
asked by 14.09.2016 / 18:57
0
answers

Problem with return returning null to another class

I have a class responsible for downloading a list of students in a web service through a method where I pass as a parameter a string with the Teacher Code and it returns me an Array of students. The problem is that when I call this method in the...
asked by 11.09.2016 / 13:40
1
answer

How to read this XML and ignore the ID field using XStream

I need to read the XML below and ignore the ID field of all contacts <contatos> <contato> <Id>1</Id> <Nome>Madeline Mullins</Nome> <Telefone>(22) 9689-2958</Telefone> </contato...
asked by 21.10.2016 / 22:13
1
answer

HttpSessionListener a single session per user

How can I make only one http session open per user on the system. Key technologies in design: Spring 4 JSF 2.2 Hibernate 5 Example: User juca, works on your computer using 3 browser. (IE, Firefox and Chrome) If he logs in w...
asked by 22.10.2016 / 01:06
1
answer

JDK tools.jar

I'm using tools.jar of JDK (more specifically Attach ) in an application, however, according to my research, tools.jar can not run in a JRE environment "because it depends on JDK." Is that right or is there any way to compile t...
asked by 21.10.2016 / 21:03
2
answers

Load objects from other classes

I have selectOneMenu that will serve to list all Generations (data in the database). These data must be listed at the time of registering a Nature object. My selectOneMenu looks like this: <h:outputLabel value="#{msg['geracao'...
asked by 21.10.2016 / 22:24
1
answer

JasperReport - Passing objects to report column

I have to get the data from the following field: venda.getVendacardinalidades().get(0).getUsuario().getPessoa().getNome() And put this value in a report column, how do I do this: I was trying to do this: <field name="nome" class="co...
asked by 07.09.2016 / 22:19