Questions tagged as 'java'

1
answer

How to handle security in a REST application with Spring?

I'd like to know how I could handle the security of a stateless REST application with Spring. Imagine that no user can access any content of /app/content if you have not first identified. Is there any way to do this without also having...
asked by 08.10.2014 / 19:23
1
answer

Download with tag a in webview [closed]

Hello I have a working webview, I'm trying to create the following html tag: for(int i = 0; i < nm.size(); i++) { html.append("<a https://example.com.br/ret/AttachedFile.do?command=showFile&generatedId=").append(id.get(i)).a...
asked by 06.11.2015 / 13:37
0
answers

Check if string exists - Procyon

Well, I'm trying to make a program that reads the code from a .class file, decompile it, and check for a string there. I'm using the Procyon library, but I do not know how. This is my code to decompile the file: import java.io.PrintWriter...
asked by 07.11.2015 / 01:00
0
answers

Doubt when overriding attribute with Apache Tiles

I'm studying a little bit about Tiles and I had a question. I have the following definition: <definition name="main" template="/views/templates/main.jsp"> <put-attribute name="titulo" value="##" /> <put-attribute name=...
asked by 08.11.2015 / 16:05
1
answer

My labels are abbreviated when I run program

When I run my program, the text inside my labels is shortened, even if I try to space it, I have to leave an absurdly large space inside the label, which has a lot of work to do because of the size of the form, I was wondering if you have any se...
asked by 21.10.2015 / 01:56
0
answers

Absolute loading mode

Good afternoon, I'd like to know how I can make my loading Stage absolute on my main Stage. Since, according to the code below, I'm defining X / Y based on my main Stage, but when moving the main Stage with the mouse, the Stage of loading gets s...
asked by 19.10.2015 / 20:29
1
answer

Maven calling Ant

I have a maven project, I want maven to "call" some ant target, I already saw that it has a "maven-antrun-plugin" plugin on the apache website, but I can not understand any examples, someone could give me a simple example, like creating a .jar (...
asked by 19.10.2015 / 19:52
0
answers

Space between the lines of Paragraph iTextPdf

I'm using a very large text and adding directly to the iTextPDF Paragraph, however the space between the lines is very large, I wanted to control the spacing between the lines, but I can not make any changes, I tried Font, Chuck and Paragraph, b...
asked by 20.10.2015 / 17:07
1
answer

Error when querying postgres table using Jpa, Hibernate and Postgres

I made a small project to test a small register in a postgres table, using jpa, with hibernate, I managed to make the registration class work, it inserts into the table without problems but I can not make the query work because I get the followi...
asked by 16.10.2015 / 20:40
1
answer

Doubt User table and Friend table

Hey guys, I need help, I'm a beginner in java, and I'm doing a college job where it's going to be a mini social network, in the beginning let's do user registration, inside the beans class, user receives a Friend List I'm com a doubt. My ques...
asked by 15.10.2015 / 15:21